/* ============================================
   LEGAL PAGES — shared styles
   White + gold theme, matching main site footer.
   ============================================ */

:root {
  --gold: #C9922A;
  --gold-dark: #8B6841;
  --gold-soft: rgba(201, 146, 42, 0.06);
  --gold-softer: rgba(201, 146, 42, 0.12);
  --gold-border: rgba(201, 146, 42, 0.18);
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-body: #3a3a3a;
  --text-muted: #5a5a5a;
  --text-faint: #8a8a8a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--white);
  min-height: 100vh;
}

/* ── Top nav ─────────────────────────────────── */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-border);
}

.legal-nav__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.legal-nav__logo {
  width: 40px;
  height: 40px;
  display: block;
}

.legal-nav__wordmark {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.legal-nav__wordmark span {
  color: var(--gold);
}

.legal-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  background: var(--white);
  transition: background 0.25s var(--ease-out), color 0.25s, border-color 0.25s, transform 0.25s;
}

.legal-nav__back:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.legal-nav__back svg {
  width: 14px;
  height: 14px;
}

/* ── Hero ────────────────────────────────────── */
.legal-hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px 36px;
  text-align: center;
}

.legal-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.legal-hero__eyebrow::before,
.legal-hero__eyebrow::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.legal-hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-hero__subtitle {
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
}

.legal-hero__divider {
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
  margin: 24px auto 0;
}

/* ── Article card ────────────────────────────── */
.legal-article {
  max-width: 860px;
  margin: 0 auto 72px;
  padding: 48px clamp(22px, 5vw, 56px);
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--gold-border);
  box-shadow: 0 4px 32px rgba(139, 104, 65, 0.05);
}

.legal-article__toc {
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 44px;
}

.legal-article__toc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 12px;
}

.legal-article__toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 18px;
}

.legal-article__toc li {
  counter-increment: toc;
  font-size: 13.5px;
}

.legal-article__toc a {
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.15s;
}

.legal-article__toc a:hover {
  color: var(--gold);
}

.legal-article h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 40px 0 16px;
  scroll-margin-top: 96px;
}

.legal-article h2:first-of-type {
  margin-top: 0;
}

.legal-article h2 .legal-article__section-num {
  display: inline-block;
  color: var(--gold);
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 10px;
  vertical-align: middle;
}

.legal-article h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 26px 0 10px;
}

.legal-article p {
  margin-bottom: 14px;
  color: var(--text-body);
}

.legal-article p:last-child {
  margin-bottom: 0;
}

.legal-article strong {
  color: var(--text-dark);
  font-weight: 600;
}

.legal-article em {
  color: var(--text-muted);
  font-style: italic;
}

.legal-article ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 14px;
}

.legal-article ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.legal-article ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.legal-article a {
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-border);
  transition: color 0.2s, border-color 0.2s;
}

.legal-article a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.legal-article__notice {
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-body);
}

.legal-article__meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gold-border);
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ============================================
   FOOTER — ported from main site styles.css
   ============================================ */
.footer {
  padding: 5rem 0 0;
  padding-bottom: 50px;
  background: var(--white);
  color: var(--text-dark);
  border-top: 1px solid var(--gold-border);
}

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

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 3rem;
}

.footer__logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.4s var(--ease-out);
}

.footer__logo:hover {
  transform: rotate(10deg) scale(1.05);
}

.footer__logo-text {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.footer__logo-gen {
  font-weight: 700;
}

.footer__tagline {
  font-size: 0.875rem;
  max-width: 480px;
  line-height: 1.7;
  color: #7a7a7a;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

.footer__social-links {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(201, 146, 42, 0.08);
  color: #8a8a8a;
  transition: background 0.3s var(--ease-out), color 0.3s, transform 0.3s;
  text-decoration: none;
}

.footer__social-link:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
}

.footer__legal {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.footer__legal-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.25s var(--ease-out);
}

.footer__legal-link:hover,
.footer__legal-link:focus-visible,
.footer__legal-link[aria-current="page"] {
  color: var(--gold);
  outline: none;
}

.footer__legal-sep {
  color: var(--gold);
  opacity: 0.4;
  user-select: none;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(201, 146, 42, 0.3);
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copyright {
  color: #666666;
}

.footer__badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #666666;
  font-size: 0.8125rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 640px) {
  .legal-nav__inner {
    padding: 12px 16px;
  }

  .legal-nav__wordmark {
    font-size: 18px;
  }

  .legal-nav__back span {
    display: none;
  }

  .legal-nav__back {
    padding: 8px 10px;
  }

  .legal-hero {
    padding: 48px 20px 28px;
  }

  .legal-article {
    padding: 32px 22px;
    border-radius: 16px;
    margin-bottom: 48px;
  }

  .legal-article h2 {
    margin: 32px 0 12px;
  }

  .legal-article__toc ol {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
