/*
 * GoldPro's public pages (privacy policy now, the landing page later).
 *
 * Plain CSS, served as-is from web/public: these pages are opened outside
 * the Shopify admin, so they carry no App Bridge and no app bundle.
 */

:root {
  --gold: #e0a308;
  --gold-deep: #b98300;
  --gold-soft: #fdf6e3;
  --ink: #111827;
  --text: #1f2937;
  --body: #475569;
  --muted: #64748b;
  --rule: #e5e7eb;
  --surface: #ffffff;
  --page: #fafaf7;
  --link: #9a6b00;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', var(--font-body);

  --radius: 12px;
  --gutter: 16px;
  --measure: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --gold-soft: #2a2310;
    --ink: #f8fafc;
    --text: #e5e7eb;
    --body: #cbd5e1;
    --muted: #94a3b8;
    --rule: #273043;
    --surface: #141a26;
    --page: #0d121c;
    --link: #f1c24a;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--gold-deep);
}

/* ---------- Header / footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner,
.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
}

.brand:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.site-nav a {
  color: var(--body);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

.site-footer__inner {
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 32px;
}

.site-footer a {
  color: var(--muted);
}

/* ---------- Legal document ---------- */

.doc-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px var(--gutter) 24px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .eyebrow {
    color: var(--gold);
  }
}

.doc-hero h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.doc-hero p {
  margin: 0;
  color: var(--muted);
}

.doc-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 960px) {
  .doc-layout {
    grid-template-columns: 240px minmax(0, var(--measure));
    gap: 64px;
  }
}

.toc {
  font-size: 14px;
}

.toc h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--body);
  text-decoration: none;
}

.toc a::before {
  content: counter(toc) '. ';
  color: var(--muted);
}

.toc a:hover {
  color: var(--ink);
}

@media (min-width: 960px) {
  .toc {
    position: sticky;
    top: 84px;
    align-self: start;
  }
}

@media (max-width: 959px) {
  .toc {
    padding: 16px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
  }
}

.doc {
  min-width: 0;
}

.doc section {
  scroll-margin-top: 84px;
  padding-bottom: 8px;
}

.doc h2 {
  margin: 40px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.doc section:first-child h2 {
  margin-top: 0;
}

.doc h3 {
  margin: 24px 0 8px;
  color: var(--ink);
  font-size: 17px;
}

.doc p,
.doc li {
  color: var(--body);
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc strong {
  color: var(--text);
}

.callout {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: var(--radius);
  background: var(--gold-soft);
}

.callout p {
  margin: 0;
  color: var(--text);
}

.table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--ink);
  font-weight: 600;
  background: color-mix(in srgb, var(--rule) 35%, transparent);
}

td {
  color: var(--body);
}

.contact-card {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card p {
  margin: 0;
}

.contact-card p + p {
  margin-top: 4px;
}
