/* Shared Celestial Styling for Legal & Info Pages (privacy.html / terms.html / contact.html) */
:root {
  --bg-deep: #05070f;
  --panel-bg: rgba(11, 16, 32, 0.9);
  --border: rgba(130, 195, 255, 0.28);
  --text-main: #eef4ff;
  --text-muted: #9eb0d1;
  --cyan: #4cf3ff;
  --gold: #ffd452;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 130, 215, 0.18), transparent 46%),
    radial-gradient(circle at 82% 84%, rgba(164, 72, 214, 0.18), transparent 48%),
    var(--bg-deep);
  color: var(--text-main);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.85;
  padding: 36px 20px 64px;
}

.legal-shell {
  max-width: 820px;
  margin: 0 auto;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.legal-brand {
  font-family: "Marcellus", serif;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-decoration: none;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(76, 243, 255, 0.5);
  background: rgba(18, 34, 62, 0.85);
  color: #dff8ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.legal-back-btn:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
}

.legal-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.legal-title {
  font-family: "Shippori Mincho", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #ffffff, #cdeaff, #ffd452);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(130, 195, 255, 0.18);
}

.legal-card h2 {
  font-size: 18px;
  font-weight: 800;
  color: #8eeeff;
  margin: 26px 0 10px;
  padding-left: 11px;
  border-left: 3px solid var(--cyan);
}

.legal-card p {
  font-size: 14.5px;
  color: #d7e4fb;
  margin-bottom: 12px;
}

.legal-card ul {
  margin: 8px 0 14px 20px;
  color: #d7e4fb;
  font-size: 14.5px;
}

.legal-card li {
  margin-bottom: 6px;
}

.legal-card a {
  color: #6fefff;
}

.contact-box {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(18, 28, 54, 0.85);
  border: 1px solid rgba(120, 190, 255, 0.3);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  margin-right: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(95deg, rgba(28, 130, 178, 0.9), rgba(114, 52, 196, 0.9));
  border: 1px solid var(--cyan);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.legal-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--cyan);
}

/* ==================== GUIDE PAGE EXTENSIONS ==================== */
.guide-shell {
  max-width: 980px;
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.guide-toc a {
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(18, 30, 58, 0.85);
  border: 1px solid rgba(110, 195, 255, 0.34);
  color: #cfe9ff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.guide-toc a:hover {
  border-color: var(--cyan);
  color: #ffffff;
}

.guide-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}

.guide-weapon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 14px 0 20px;
}

.guide-box,
.guide-weapon-card {
  padding: 15px 17px;
  border-radius: 14px;
  background: rgba(16, 24, 46, 0.84);
  border: 1px solid rgba(120, 185, 245, 0.24);
}

.guide-weapon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.guide-weapon-name {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.guide-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(76, 243, 255, 0.14);
  border: 1px solid rgba(76, 243, 255, 0.42);
  color: #9bf6ff;
  font-size: 11px;
  font-weight: 700;
}

.guide-tag.gold {
  background: rgba(255, 212, 82, 0.16);
  border-color: rgba(255, 212, 82, 0.52);
  color: #ffe8a3;
}

.guide-weapon-desc {
  font-size: 13.5px;
  color: #d0def7;
  margin-bottom: 6px;
}

.guide-weapon-tip {
  font-size: 12.5px;
  color: #ffe8a3;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 13.5px;
}

.guide-table th,
.guide-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(130, 185, 245, 0.16);
  text-align: left;
}

.guide-table th {
  color: #8eeeff;
  background: rgba(16, 28, 56, 0.7);
  font-weight: 800;
}

.val-plus {
  color: #4effaa;
  font-weight: 800;
}

.val-minus {
  color: #ff6b8b;
  font-weight: 800;
}

.guide-cta-box {
  margin-top: 28px;
  padding: 24px 22px;
  border-radius: 16px;
  background: linear-gradient(125deg, rgba(22, 62, 108, 0.72), rgba(76, 24, 114, 0.72));
  border: 1px solid rgba(76, 243, 255, 0.55);
  text-align: center;
}

.guide-cta-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 13px 32px;
  border-radius: 12px;
  background: linear-gradient(95deg, #1b8cc2, #7d36d1, #cf37a4);
  border: 1.5px solid #6fefff;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(76, 243, 255, 0.3);
}

@media (max-width: 720px) {
  .guide-grid-2,
  .guide-weapon-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .legal-card {
    padding: 24px 20px;
  }
  .legal-title {
    font-size: 22px;
  }
}
