/* Shared chrome + typography for the legal pages (terms / privacy / refund).
   Mirrors the inline design tokens in ../index.html. Loaded as 'self', so the
   _headers CSP (style-src 'self' 'unsafe-inline') allows it with no exception. */
:root {
  --bg:            #FAFAFA;
  --surface:       #FFFFFF;
  --surface-alt:   #F3F3F3;
  --border:        #E1E1E1;
  --border-strong: #C8C8C8;
  --text:          #1F1F1F;
  --text-muted:    #6E6E6E;
  --text-faint:    #9A9A9A;
  --accent:        #0078D4;
  --accent-hover:  #106EBE;
  --ink:           #14213A;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; color: var(--ink); }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--border-strong); border-radius: 6px;
  background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--surface-alt); text-decoration: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; max-width: 1080px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand .mark { width: 28px; height: 28px; display: inline-block; object-fit: contain; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-spacer { flex: 1; }

/* Legal article */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: 34px; margin: 0 0 6px; letter-spacing: -0.01em; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin: 0 0 36px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 26px 0 8px; }
.legal p { margin: 0 0 14px; color: var(--text); }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .lede { font-size: 18px; color: var(--text-muted); }
.legal a { font-weight: 500; }

/* Sub-processor table */
table.sub { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 14.5px; }
table.sub th, table.sub td { text-align: left; vertical-align: top; padding: 9px 12px; border: 1px solid var(--border); }
table.sub th { background: var(--surface-alt); color: var(--ink); font-weight: 600; }
table.sub td { background: var(--surface); color: var(--text-muted); }

/* Footer (mirrors index.html) */
footer.site { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; max-width: 1080px; }
footer.site .brand { font-size: 16px; }
footer.site .links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
footer.site .links a { color: var(--text-muted); font-size: 14px; }
footer.site .copy { width: 100%; font-size: 13px; color: var(--text-faint); border-top: 1px solid var(--border); padding-top: 18px; margin-top: 6px; }

@media (max-width: 640px) {
  .nav-links { display: none; }
}
