/* =============================================
   LEGAL PAGE STYLES — Shared by privacy.html & terms.html
   Requires: main.css (fonts, reset, nav, footer, utilities)
   ============================================= */

/* LEGAL PAGE LAYOUT */
.legal-hero {
  background: var(--deep-navy);
  padding: 120px 0 56px;
  margin-top: var(--nav-height);
  text-align: center;
  position: relative;
}
.legal-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(136, 146, 160, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.legal-hero__inner {
  max-width: 840px; margin: 0 auto; padding: 0 var(--gutter);
  position: relative; z-index: 1;
}
.legal-hero__overline {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 16px;
}
.legal-hero__title {
  font-family: var(--font-heading); font-size: 48px; font-weight: 700;
  line-height: 1.12; letter-spacing: -0.025em; color: var(--muted-white);
  margin-bottom: 16px;
}
.legal-hero__meta {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--slate); letter-spacing: 0.04em;
}

/* LEGAL CONTENT */
.legal-content {
  background: var(--off-white);
  padding: 64px 0 96px;
}
.legal-content__inner {
  max-width: 800px; margin: 0 auto; padding: 0 var(--gutter);
}

/* TABLE OF CONTENTS */
.legal-toc {
  background: #2C3038;
  border: 1px solid rgba(136, 146, 160, 0.1);
  border-radius: 4px;
  padding: 32px;
  margin-bottom: 56px;
}
.legal-toc__title {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-white);
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(136, 146, 160, 0.12);
}
.legal-toc__list {
  columns: 2; column-gap: 32px;
}
.legal-toc__item {
  font-size: 14px; line-height: 1.5; margin-bottom: 10px;
  break-inside: avoid;
}
.legal-toc__link {
  color: var(--slate); transition: color 150ms ease;
}
.legal-toc__link:hover { color: var(--gold); }
.legal-toc__number {
  font-family: var(--font-mono); font-size: 12px; color: var(--gold);
  margin-right: 8px;
}

/* LEGAL SECTIONS */
.legal-section {
  margin-bottom: 48px;
  padding-top: 8px;
}
.legal-section__title {
  font-family: var(--font-heading); font-size: 24px; font-weight: 600;
  line-height: 1.25; color: var(--muted-white); margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(136, 146, 160, 0.1);
}
.legal-section__number {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  color: var(--gold); margin-right: 10px;
}
.legal-section h4 {
  font-family: var(--font-body); font-size: 17px; font-weight: 600;
  color: var(--muted-white); margin: 24px 0 12px;
}
.legal-section p {
  font-size: 15px; line-height: 1.7; color: var(--slate); margin-bottom: 16px;
}
.legal-section ul, .legal-section ol {
  margin: 12px 0 16px 0; padding-left: 0;
}
.legal-section li {
  font-size: 15px; line-height: 1.7; color: var(--slate);
  margin-bottom: 8px; padding-left: 20px; position: relative;
}
.legal-section ul li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
.legal-section ol {
  counter-reset: legal-list;
}
.legal-section ol li {
  counter-increment: legal-list;
}
.legal-section ol li::before {
  content: counter(legal-list) ".";
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--gold);
}
.legal-section strong {
  color: var(--muted-white); font-weight: 600;
}
.legal-section a {
  color: var(--gold); text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.3);
  transition: text-decoration-color 150ms ease;
}
.legal-section a:hover {
  text-decoration-color: var(--gold);
}

/* CALLOUT BOX */
.legal-callout {
  background: rgba(212, 175, 55, 0.06);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin: 20px 0 24px;
  border-radius: 0 4px 4px 0;
}
.legal-callout p {
  font-size: 14px; line-height: 1.65; color: var(--slate); margin-bottom: 0;
}

/* TABLE */
.legal-table {
  width: 100%; border-collapse: collapse; margin: 16px 0 24px;
}
.legal-table th, .legal-table td {
  text-align: left; padding: 12px 16px; font-size: 14px;
  border-bottom: 1px solid rgba(136, 146, 160, 0.1);
}
.legal-table th {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-white); background: rgba(136, 146, 160, 0.06);
}
.legal-table td { color: var(--slate); }

/* LEGAL LINKS NAV */
.legal-links {
  display: flex; align-items: center; gap: 24px;
  padding: 32px 0; margin-top: 48px;
  border-top: 1px solid rgba(136, 146, 160, 0.1);
}
.legal-links__label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate);
}
.legal-links a {
  font-size: 14px; color: var(--gold);
  transition: opacity 150ms ease;
}
.legal-links a:hover { opacity: 0.8; }

/* ATTORNEY NOTICE */
.legal-notice {
  background: #2C3038;
  border: 1px solid rgba(136, 146, 160, 0.1);
  border-radius: 4px;
  padding: 24px 28px;
  margin-top: 48px;
}
.legal-notice p {
  font-size: 13px; line-height: 1.6; color: var(--slate); margin: 0;
}
.legal-notice strong { color: var(--muted-white); }

/* LEGAL FOOTER (centered, simplified layout) */
.footer__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter);
  text-align: center;
}
.footer__inner .footer__logo { display: flex; justify-content: center; margin-bottom: 16px; }
.footer__inner .footer__text {
  font-size: 14px; line-height: 1.5; color: var(--slate); margin-bottom: 20px;
}
.footer__inner .footer__links {
  display: flex; justify-content: center; gap: 24px; margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer__inner .footer__link {
  display: inline; margin-bottom: 0;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .legal-hero { padding: 88px 0 40px; }
  .legal-hero__title { font-size: 32px; }
  .legal-toc__list { columns: 1; }
  .legal-content { padding: 48px 0 72px; }
  .legal-section__title { font-size: 20px; }
  .legal-table { font-size: 13px; }
  .legal-table th, .legal-table td { padding: 10px 12px; }
  .legal-links { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .legal-hero__title { font-size: 28px; }
  .legal-toc { padding: 24px; }
}
