/* Sell with Mia — legal pages (terms, privacy, refund-policy)
   Tokens, nav and footer mirror index.html so these pages read as the same site. */

:root {
  --midnight: #1E2B3A;
  --midnight-soft: #2A3B4E;
  --terracotta: #D4845E;
  --terracotta-soft: #E0A080;
  --terracotta-bg: #FDF0E4;
  --honey: #F5C366;
  --cream: #F7F3ED;
  --cream-dark: #EDE8DD;
  --forest: #2D6A4F;
  --forest-bg: #EEF5F0;
  --white: #FFFFFF;
  --text: #1C1C1C;
  --text-mid: #4A4A4A;
  --text-soft: #7A7A7A;
  --border: #E0DBD0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

a { color: var(--midnight); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }

/* NAV — same as index.html */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247,243,237,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 24px; max-width: 1060px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-soft));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(212,132,94,0.25);
}
.logo-mark span { color: var(--white); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.04em; }
.logo-name { font-weight: 700; font-size: 1.1rem; color: var(--midnight); letter-spacing: -0.01em; }
.nav-cta {
  text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--white);
  background: var(--midnight); padding: 10px 20px; border-radius: 12px;
  transition: transform .2s, box-shadow .2s; white-space: nowrap;
}
.nav-cta:hover { color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(30,43,58,0.25); }

/* PAGE */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; }
.legal h1 {
  font-size: clamp(2rem, 4.6vw, 2.8rem); font-weight: 300; line-height: 1.14;
  letter-spacing: -0.02em; color: var(--midnight); margin: 0 0 10px;
}
.legal h1 strong { font-weight: 700; }
.legal .dateline { color: var(--text-soft); font-size: 0.95rem; margin: 0 0 30px; }

.summary {
  background: var(--cream-dark);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 0 0 36px;
}
.legal .summary h2 { font-size: 1.05rem; font-weight: 700; color: var(--midnight); margin: 0 0 10px; }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 6px 0; color: var(--text-mid); }

.toc { font-size: 0.95rem; margin: 0 0 40px; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; margin: 4px 0; }
.toc a { text-decoration: none; color: var(--text-mid); }
.toc a:hover { color: var(--terracotta); }

.legal h2 {
  font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; color: var(--midnight);
  margin: 44px 0 12px; scroll-margin-top: 90px;
}
.legal h3 { font-size: 1.08rem; font-weight: 600; color: var(--midnight); margin: 24px 0 8px; }
.legal p { margin: 0 0 14px; color: var(--text); }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal th { font-weight: 600; color: var(--midnight); background: var(--cream-dark); }
.legal .contact-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; margin: 8px 0 20px;
}
.legal .contact-card p { margin: 4px 0; }
.legal .note { color: var(--text-soft); font-size: 0.9rem; }

/* FOOTER — same as index.html, plus a links row */
footer { background: var(--cream); padding: 52px 0 36px; border-top: 1px solid var(--border); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 36px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid var(--border); margin-bottom: 26px;
}
.footer-brand p { color: var(--text-soft); font-size: 0.92rem; max-width: 320px; margin: 12px 0 0; }
.footer-contact h5 {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-soft); margin: 0 0 8px;
}
.footer-contact a { display: block; color: var(--midnight); font-weight: 500; text-decoration: none; font-size: 0.96rem; margin-bottom: 4px; }
.footer-contact a:hover { color: var(--terracotta); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 0.9rem; }
.footer-links a { color: var(--text-mid); text-decoration: none; }
.footer-links a:hover { color: var(--terracotta); }
.footer-legal { font-size: 0.84rem; color: var(--text-soft); line-height: 1.8; }
.footer-legal strong { color: var(--text-mid); font-weight: 600; }

@media (max-width: 640px) {
  .nav-cta { display: none; }
  .legal { padding: 40px 20px 56px; }
  .toc { columns: 1; }
}
