/* ============================================================
   TABULA RASA — legal.css (privacy-policy + terms)
   ============================================================ */

body { background: var(--off-white); }

/* Hero meta bar */
.hero-meta { display: flex; gap: 0; margin-top: 2rem; border: 1px solid rgba(255,255,255,0.08); }
.hero-meta-item { padding: 1rem 1.5rem; flex: 1; border-right: 1px solid rgba(255,255,255,0.08); }
.hero-meta-item:last-child { border-right: none; }
.hero-meta-label { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.35); font-weight: 600; margin-bottom: 0.3rem; }
.hero-meta-value { font-size: 0.88rem; color: rgba(255,255,255,0.78); font-weight: 400; }

/* Hero TOC */
.hero-toc { display: flex; flex-direction: column; gap: 0; }
.toc-item { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.3rem; border: 1px solid rgba(255,255,255,0.08); border-bottom: none; background: rgba(255,255,255,0.03); text-decoration: none; transition: background 0.2s; }
.toc-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.toc-item:hover { background: rgba(201,168,76,0.09); }
.toc-num { font-size: 0.65rem; letter-spacing: 0.1em; color: rgba(201,168,76,0.5); font-weight: 700; min-width: 1.6rem; flex-shrink: 0; }
.toc-label { font-size: 0.8rem; color: rgba(255,255,255,0.72); font-weight: 400; flex: 1; }
.toc-arrow { color: var(--gold); font-size: 0.75rem; opacity: 0; transition: opacity 0.2s; }
.toc-item:hover .toc-arrow { opacity: 1; }

/* Layout */
.policy-main { padding: 5rem 0 7rem; }
.policy-layout { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; align-items: start; }
.policy-sidebar { position: sticky; top: 96px; }
.sidebar-title { font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; padding-bottom: 0.75rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 0; }
.sidebar-nav-item a { display: block; padding: 0.7rem 1rem; font-size: 0.81rem; color: var(--text-soft); text-decoration: none; font-weight: 400; border-left: 2px solid transparent; transition: all 0.18s; line-height: 1.4; }
.sidebar-nav-item a:hover, .sidebar-nav-item a.active { color: var(--navy); border-color: var(--gold); background: rgba(201,168,76,0.06); font-weight: 600; }
.sidebar-contact { margin-top: 2rem; background: var(--navy); padding: 1.5rem; }
.sidebar-contact-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.6rem; }
.sidebar-contact p { font-size: 0.8rem; color: rgba(255,255,255,0.55); font-weight: 300; line-height: 1.6; margin-bottom: 1rem; }
.sidebar-contact a.btn { display: block; text-align: center; background: var(--gold); color: var(--navy); padding: 0.65rem 1rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; text-decoration: none; transition: background 0.2s; margin-bottom: 0.6rem; }
.sidebar-contact a.btn:hover { background: var(--gold-lt); }
.sidebar-contact a.link { display: block; text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.45); text-decoration: none; font-weight: 300; transition: color 0.2s; }
.sidebar-contact a.link:hover { color: var(--gold-lt); }

/* Content panel */
.policy-content { background: var(--white); border: 1px solid var(--border); }
.policy-intro { padding: 2.5rem 3rem; background: rgba(201,168,76,0.05); border-bottom: 1px solid var(--border); }
.policy-intro p { font-size: 0.94rem; color: var(--text-soft); line-height: 1.8; font-weight: 300; }
.policy-intro p strong { color: var(--navy); font-weight: 600; }
.policy-section { padding: 3rem; border-bottom: 1px solid var(--border); }
.policy-section:last-child { border-bottom: none; }
.section-header { display: flex; align-items: flex-start; gap: 1.2rem; margin-bottom: 1.8rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.section-icon { width: 40px; height: 40px; flex-shrink: 0; background: rgba(201,168,76,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 0.1rem; }
.section-icon svg { width: 17px; height: 17px; stroke: var(--gold); fill: none; stroke-width: 2; }
.section-num { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 0.2rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.policy-section h3 { font-size: 0.92rem; font-weight: 700; color: var(--navy); margin: 1.6rem 0 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; }
.policy-section p { font-size: 0.92rem; color: var(--text-soft); line-height: 1.85; font-weight: 300; margin-bottom: 1rem; }
.policy-section p:last-child { margin-bottom: 0; }
.policy-section ul, .policy-section ol { margin: 0.6rem 0 1rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.policy-section li { font-size: 0.92rem; color: var(--text-soft); line-height: 1.75; font-weight: 300; }
.policy-section li strong { color: var(--navy); font-weight: 600; }
.policy-section a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
.policy-section a:hover { color: var(--navy); }
.highlight-box { background: rgba(201,168,76,0.06); border-left: 3px solid var(--gold); padding: 1.2rem 1.4rem; margin: 1.2rem 0; }
.highlight-box p { font-size: 0.88rem; color: var(--text); margin-bottom: 0; font-weight: 400; }
.data-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.88rem; }
.data-table th { background: var(--navy); color: var(--white); padding: 0.75rem 1rem; text-align: left; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.data-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-soft); font-weight: 300; line-height: 1.5; vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--off-white); }
.data-table td:first-child { color: var(--navy); font-weight: 500; }

/* CTA band */
.cta-band { background: var(--navy); padding: 6rem 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; right: -8rem; top: 50%; transform: translateY(-50%); width: 36rem; height: 36rem; border-radius: 50%; border: 1px solid rgba(201,168,76,0.07); pointer-events: none; }
.cta-band-inner { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.cta-band h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 700; color: var(--white); line-height: 1.25; }
.cta-band h2 em { color: var(--gold); font-style: italic; }
.cta-band p { font-size: 0.96rem; color: rgba(255,255,255,0.55); font-weight: 300; line-height: 1.7; margin-top: 1rem; max-width: 52ch; }
.cta-actions { display: flex; flex-direction: column; gap: 1rem; min-width: 220px; }
.btn-gold { background: var(--gold); color: var(--navy); padding: 1rem 2.2rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; font-weight: 700; text-align: center; transition: background 0.2s; display: block; }
.btn-gold:hover { background: var(--gold-lt); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.7); padding: 1rem 2.2rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; font-weight: 500; border: 1px solid rgba(255,255,255,0.2); text-align: center; transition: all 0.2s; display: block; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

/* Responsive */
@media (max-width: 1024px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-sidebar { position: static; }
  .cta-band-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .policy-section { padding: 2rem 1.5rem; }
  .policy-intro { padding: 1.5rem; }
  .hero-meta { flex-direction: column; }
  .hero-meta-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .data-table { font-size: 0.8rem; }
}

/* ── TERMS PAGE SPECIFIC ─────────────────────────────────────── */
/* (moved from inline <style> in terms.html)                     */

.terms-main { padding: 5rem 0 7rem; }
.terms-layout { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; align-items: start; }
.terms-sidebar { position: sticky; top: 96px; }
.terms-content { background: var(--white); border: 1px solid var(--border); }
.terms-intro { padding: 2.5rem 3rem; background: rgba(201,168,76,0.05); border-bottom: 1px solid var(--border); }
.terms-intro p { font-size: 0.94rem; color: var(--text-soft); line-height: 1.8; font-weight: 300; }
.terms-intro strong { color: var(--navy); font-weight: 600; }
.terms-section { padding: 3rem; border-bottom: 1px solid var(--border); }
.terms-section:last-child { border-bottom: none; }
.phase-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.88rem; }
.phase-table th { background: var(--navy); color: var(--white); padding: 0.75rem 1rem; text-align: left; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.phase-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-soft); font-weight: 300; line-height: 1.5; vertical-align: top; }
.phase-table tr:last-child td { border-bottom: none; }
.phase-table tr:nth-child(even) td { background: var(--off-white); }
.phase-table td:first-child { color: var(--navy); font-weight: 600; white-space: nowrap; }
.phase-table td:nth-child(2) { color: var(--gold); font-weight: 700; white-space: nowrap; }
.warning-box { background: rgba(224,82,82,0.06); border-left: 3px solid rgba(224,82,82,0.5); padding: 1.2rem 1.4rem; margin: 1.2rem 0; }
.warning-box p { font-size: 0.88rem; color: var(--text); margin-bottom: 0; font-weight: 400; }

@media (max-width: 1024px) {
  .terms-layout { grid-template-columns: 1fr; }
  .terms-sidebar { position: static; }
}
@media (max-width: 768px) {
  .terms-section { padding: 2rem 1.5rem; }
  .terms-intro { padding: 1.5rem; }
  .phase-table { font-size: 0.78rem; }
}
