/* ==========================================================================
   Star Voyage — legal stylesheet (privacy.html / terms-of-service.html)
   Loaded INSTEAD of style.css on legal pages.
   ========================================================================== */

:root {
  --bg: #0D1420;
  --bg-2: #101A2C;
  --bg-deep: #0A0F1A;
  --panel: #1B2A4A;
  --panel-2: #16223C;
  --line: #24365E;
  --gold: #E8C15A;
  --gold-bright: #F3D27A;
  --gold-ink: #0D1420;
  --text: #E8EEF7;
  --muted: #B9C4D4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Navigation (.orbit-nav) ---------- */
.orbit-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.orbit-mark {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.orbit-dot {
  position: absolute;
  border-radius: 50%;
}
.orbit-dot.dot-1 {
  width: 6px;
  height: 6px;
  background: var(--gold);
  top: -3px;
  left: 50%;
  margin-left: -3px;
}
.orbit-dot.dot-2 {
  width: 5px;
  height: 5px;
  background: var(--text);
  bottom: 2px;
  left: -3px;
}
.orbit-dot.dot-3 {
  width: 5px;
  height: 5px;
  background: var(--muted);
  bottom: 2px;
  right: -3px;
}
.wordmark {
  white-space: nowrap;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 2px;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a.active {
  color: var(--gold);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
}
.nav-cta {
  background: var(--gold);
  color: var(--gold-ink);
  padding: 11px 20px;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.nav-cta:hover {
  background: var(--gold-bright);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Legal header (a <header>, never a <section>) ---------- */
.legal-header {
  background: linear-gradient(135deg, #1B2A4A 0%, #24355C 100%);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}
.legal-header .container {
  text-align: center;
}
.legal-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text);
  letter-spacing: -0.01em;
}
.legal-header p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 1rem;
}

/* ---------- Legal content ---------- */
.legal-content {
  padding: 56px 0 88px;
}
.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Table of contents ---------- */
.toc {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 48px;
}
.toc-title {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}
.toc a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.toc a:hover {
  color: var(--gold);
}

/* ---------- Legal section typography ---------- */
.legal-content section {
  margin-bottom: 48px;
}
.legal-content h2 {
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.legal-content p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.legal-content a {
  color: var(--gold);
  text-decoration: underline;
}
.legal-content a:hover {
  color: var(--gold-bright);
}
.legal-content section ul {
  margin: 0 0 16px 22px;
  color: var(--muted);
  line-height: 1.75;
}
.legal-content section li {
  margin-bottom: 8px;
}

/* ---------- Scope isolation: never paint dark backgrounds over legal text ---------- */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Footer (.comet-footer) ---------- */
.comet-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand p {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 18px;
  max-width: 34em;
}
.footer-col h3 {
  color: var(--text);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 12px;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-contact li span {
  color: var(--muted);
  line-height: 1.6;
}
.comet-mark {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 18px;
  flex-shrink: 0;
}
.comet-head {
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  background: var(--gold);
  border-radius: 50%;
}
.comet-tail {
  position: absolute;
  left: 11px;
  top: 7px;
  width: 30px;
  height: 4px;
  background: linear-gradient(90deg, var(--muted) 0%, transparent 100%);
  border-radius: 0 4px 4px 0;
}
.legal-bar {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.legal-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-bar-inner p {
  color: var(--muted);
  font-size: 0.92rem;
}
.legal-links {
  display: flex;
  gap: 24px;
}
.legal-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.legal-links a:hover {
  color: var(--gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .toc ol {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    display: block;
    padding: 14px 0;
  }
}
