/* ============================================================================
   WelcomeVerify — shared site design system
   Reference page: /privacy-policy
   Rules: professional and simple, NO gradient colours on words, light + dark.

   Theme resolution order matters:
     1. :root                                  -> light, the default
     2. @media (prefers-color-scheme: dark)    -> follow the OS...
        scoped to :root:not([data-theme=light])   ...unless the reader chose light
     3. :root[data-theme="dark"]               -> an explicit choice always wins
   Each page must also carry the tiny blocking <script> in <head> that stamps
   data-theme before first paint, or the page flashes the wrong mode on load.
   ========================================================================= */

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

:root {
  --bg:        #ffffff;
  --surface:   #f8fafc;
  --text:      #0f172a;
  --text-soft: #475569;
  --text-mute: #64748b;
  --border:    #e2e8f0;
  --accent:    #1d4ed8;
  --header-bg: rgba(255, 255, 255, .88);
  --logo-ring: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0b1020;
    --surface:   #131a2e;
    --text:      #f1f5f9;
    --text-soft: #cbd5e1;
    --text-mute: #94a3b8;
    --border:    #1f2a44;
    --accent:    #7aa5f7;
    --header-bg: rgba(11, 16, 32, .88);
    --logo-ring: #1f2a44;
  }
}

:root[data-theme="dark"] {
  --bg:        #0b1020;
  --surface:   #131a2e;
  --text:      #f1f5f9;
  --text-soft: #cbd5e1;
  --text-mute: #94a3b8;
  --border:    #1f2a44;
  --accent:    #7aa5f7;
  --header-bg: rgba(11, 16, 32, .88);
  --logo-ring: #1f2a44;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 32px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--logo-ring);
  background: #fff;
}
.brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.brand-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--text);
}

.header-right { display: flex; align-items: center; gap: 18px; }

.back-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ── Theme toggle ── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-mute); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

/* ── Page ── */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 10px;
}

.meta {
  font-size: .85rem;
  color: var(--text-mute);
  margin-bottom: 48px;
}

.section { margin-bottom: 36px; }

.section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 12px;
}

.section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
}

.section p, .section li {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.section p + p { margin-top: 12px; }

.section a { color: var(--accent); text-decoration: none; }
.section a:hover { text-decoration: underline; }

.section strong { color: var(--text); font-weight: 600; }

.section ul, .section ol { list-style: none; padding: 0; margin-top: 4px; }

.section ul li {
  padding-left: 1.15em;
  position: relative;
  margin-bottom: 8px;
}
.section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-mute);
}

.section ol { counter-reset: item; }
.section ol li {
  padding-left: 1.6em;
  position: relative;
  margin-bottom: 8px;
  counter-increment: item;
}
.section ol li::before {
  content: counter(item) '.';
  position: absolute;
  left: 0;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-top: 16px;
}
.highlight p { font-size: .9rem; color: var(--text-soft); }

/* Warning variant — amber rail rather than the accent. Used on Terms for the
   clauses a reader must not skim (liability, no-guarantee-of-outcome). */
.highlight-warn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid #d97706;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-top: 16px;
}
.highlight-warn p { font-size: .9rem; color: var(--text-soft); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .highlight-warn { border-left-color: #f59e0b; }
}
:root[data-theme="dark"] .highlight-warn { border-left-color: #f59e0b; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  margin-top: 16px;
}
.contact-card a { color: var(--accent); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 9px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--text-mute); }

/* ── Footer ── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-right { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-right a { color: var(--text-mute); text-decoration: none; }
.footer-right a:hover { color: var(--text); }

@media (max-width: 600px) {
  .header { padding: 12px 18px; }
  .header-right { gap: 12px; }
  .page   { padding: 44px 20px 72px; }
  .footer { padding: 20px 18px; flex-direction: column; align-items: flex-start; }
}

@media print {
  .header, .footer, .theme-toggle { display: none; }
  .page { padding: 0; max-width: none; }
}
