/* Shared shell for the policy pages (privacy, terms, refund).
   The design tokens and the nav/footer treatment mirror faq.html so a visitor who follows a footer
   link does not feel like they have left the store. */

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

:root {
  --obsidian:   #0A0A0F;
  --deep:       #111118;
  --slate:      #1C1C28;
  --gold:       #C9A055;
  --gold-light: #E8C87A;
  --gold-dim:   #C9A05544;
  --ivory:      #F7F3EC;
  --mist:       #2A2A3A;
  --text-muted: #7A7A9A;
  --text-body:  #B9B9CE;
}

html { scroll-behavior: smooth; }

body {
  background: var(--obsidian);
  color: var(--ivory);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 72px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,160,85,0.12);
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-seal {
  width: 38px; height: 38px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; font-weight: 600; color: var(--gold);
  letter-spacing: 1px;
}
.nav-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 400; color: var(--ivory);
  letter-spacing: 3px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-name { font-size: 15px; letter-spacing: 2px; }
  .nav-links { display: none; }
}

/* ── MAIN ── */
main { flex: 1; position: relative; padding: 152px 24px 100px; }

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,160,85,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,160,85,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 60%);
}

.wrap { position: relative; max-width: 760px; margin: 0 auto; }

/* ── HEADER ── */
.head { text-align: center; margin-bottom: 56px; }
.eyebrow {
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
  animation: fadeUp 0.6s 0.05s both;
}
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 6.5vw, 60px);
  font-weight: 300; line-height: 1.05;
  color: var(--ivory); margin-bottom: 18px;
  animation: fadeUp 0.6s 0.15s both;
}
.page-title em { font-style: italic; color: var(--gold); }
.page-sub {
  font-size: 14px; line-height: 1.8; color: var(--text-muted);
  max-width: 520px; margin: 0 auto;
  animation: fadeUp 0.6s 0.25s both;
}
.updated {
  display: inline-block; margin-top: 22px;
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--gold-dim); border-radius: 2px;
  padding: 7px 14px;
  animation: fadeUp 0.6s 0.3s both;
}

/* ── PROSE ── */
.doc { animation: fadeUp 0.6s 0.35s both; }

.doc section {
  border: 1px solid var(--mist);
  border-radius: 3px;
  background: var(--slate);
  padding: 30px 34px;
  margin-bottom: 14px;
}

.doc h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 400; color: var(--gold);
  letter-spacing: 0.4px; margin-bottom: 16px;
}

.doc h3 {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ivory); margin: 26px 0 12px;
}

.doc p { font-size: 14.5px; line-height: 1.85; color: var(--text-body); margin-bottom: 14px; }
.doc p:last-child, .doc ul:last-child, .doc table:last-child { margin-bottom: 0; }

.doc a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); }
.doc a:hover { color: var(--gold-light); }

.doc ul { list-style: none; margin: 0 0 14px; }
.doc ul li {
  position: relative; padding-left: 20px; margin-bottom: 11px;
  font-size: 14.5px; line-height: 1.8; color: var(--text-body);
}
.doc ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 5px; height: 5px; background: var(--gold); border-radius: 50%;
}
.doc ul li strong { color: var(--ivory); font-weight: 500; }

.doc table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.doc th, .doc td {
  text-align: left; padding: 12px 14px;
  font-size: 13.5px; line-height: 1.7;
  border-bottom: 1px solid var(--mist);
  color: var(--text-body); vertical-align: top;
}
.doc th {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.doc td:first-child { color: var(--ivory); white-space: nowrap; }
.doc tr:last-child td { border-bottom: none; }

/* The consent control is a <button> because it acts rather than navigates, but inside prose it has
   to read as part of the sentence, so it borrows the .doc a treatment. */
.consent-reset {
  font: inherit; color: var(--gold); background: none;
  border: none; border-bottom: 1px solid var(--gold-dim);
  padding: 0; cursor: pointer;
}
.consent-reset:hover { color: var(--gold-light); }

.callout {
  border-left: 2px solid var(--gold);
  background: rgba(201,160,85,0.06);
  padding: 18px 22px; border-radius: 2px; margin-bottom: 14px;
}
.callout p { margin-bottom: 0; color: var(--ivory); }

@media (max-width: 640px) {
  main { padding: 116px 18px 72px; }
  .doc section { padding: 24px 20px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc th { display: none; }
  .doc td { border-bottom: none; padding: 4px 0; }
  .doc td:first-child { color: var(--gold); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding-top: 14px; }
  .doc tr { border-bottom: 1px solid var(--mist); padding-bottom: 12px; }
}

/* ── PAGE LINKS ── */
.doc-nav {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 40px; animation: fadeUp 0.6s 0.45s both;
}
.doc-nav a, .doc-nav button {
  font-family: inherit;
  font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; background: none;
  border: 1px solid var(--mist); border-radius: 2px;
  padding: 11px 18px; transition: all 0.2s; cursor: pointer;
}
.doc-nav a:hover, .doc-nav button:hover { color: var(--gold); border-color: var(--gold-dim); }
.doc-nav a.current { color: var(--gold); border-color: var(--gold); }

.consent-reset:focus-visible, .doc-nav a:focus-visible, .doc-nav button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

/* ── FOOTER ── */
footer { background: var(--deep); padding: 56px 60px 30px; border-top: 1px solid rgba(201,160,85,0.1); }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
}
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; color: var(--ivory); letter-spacing: 2px;
}
.footer-links { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 12px; color: #3A3A55; width: 100%; text-align: center; padding-top: 22px; border-top: 1px solid rgba(201,160,85,0.08); }

@media (max-width: 768px) {
  footer { padding: 44px 20px 24px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eyebrow, .page-title, .page-sub, .updated, .doc, .doc-nav { animation: none; }
}
