/* ===========================================================================
   Styles for the standalone legal pages only.
   Loaded after style.css, which supplies the colour tokens and base reset.
   Nothing in here affects the homepage.
=========================================================================== */

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-nav-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-brand {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--white);
  white-space: nowrap;
}

.legal-brand-dot { color: var(--blue-electric); }

.legal-back {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  transition: color 0.18s ease;
}

.legal-back:hover,
.legal-back:focus-visible { color: var(--white); }

.legal-back-arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}

.legal-back:hover .legal-back-arrow { transform: translateX(-3px); }

/* --------------------------------------------------------------- document */
.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 60px) 24px clamp(44px, 7vw, 72px);
}

.legal-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.legal-title {
  font-size: clamp(27px, 4.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.legal-updated {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

.legal-intro {
  margin-top: 22px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
}

.legal-section { margin-top: 34px; }

.legal-section h2 {
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.legal-section h3 {
  font-size: 16px;
  font-weight: 800;
  margin-top: 20px;
  margin-bottom: 6px;
}

.legal-section p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.legal-section p + p { margin-top: 12px; }
.legal-section h3 + p { margin-top: 0; }
/* A paragraph resuming after a bullet list needs the same separation. */
.legal-list + p { margin-top: 14px; }

.legal-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-list li {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  position: relative;
  padding-left: 20px;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-electric);
}

.legal-list strong { color: var(--ink); font-weight: 700; }

.legal-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--blue-electric);
  background: rgba(10, 18, 36, 0.04);
  border-radius: 0 6px 6px 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.legal-section a,
.legal-note a,
.legal-intro a {
  color: var(--blue-electric);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1.5px solid var(--line);
}

.legal-bottom a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
}

.legal-bottom a:hover { color: var(--blue-electric); }

/* --------------------------------------------------------------- footer */
.legal-footer {
  background: var(--navy);
  text-align: center;
  padding: 28px 24px;
}

.legal-footer-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
}

.legal-footer-links a { color: rgba(255, 255, 255, 0.62); }
.legal-footer-links a:hover { color: var(--blue-electric); }
.legal-footer-links span { color: rgba(255, 255, 255, 0.25); }

@media (max-width: 560px) {
  .legal-nav-inner { height: 50px; }
  .legal-intro { font-size: 15.5px; }
}
