/* Talxen legal pages — shared styling.
   Navy & Gold brand (matches index.html), tuned for long-form reading with
   WCAG-AA contrast. Self-contained: no external CSS, only Google Fonts (same as
   the homepage). Loaded by every /legal page via <link rel="stylesheet">. */

:root {
  --navy: #1B2B57;        /* brand primary / chrome */
  --navy-deep: #0d1631;   /* page base */
  --panel: #16244a;       /* content card */
  --panel-2: #1d2f60;     /* raised / callouts */
  --gold: #E0A73C;        /* accent */
  --gold-2: #f2bd57;      /* accent hover */
  --ink: #eef3fc;         /* body text (AA on navy) */
  --ink-strong: #ffffff;
  --muted: #b3c1de;       /* secondary text (AA on navy) */
  --line: rgba(255, 255, 255, .12);
  --line-gold: rgba(224, 167, 60, .35);
  --radius-card: 20px;
  --radius: 12px;
  --radius-pill: 999px;
  --maxw: 900px;
  --head: Poppins, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 84% -14%, rgba(224, 167, 60, .14), transparent 55%),
    radial-gradient(900px 520px at -6% 6%, rgba(43, 74, 140, .5), transparent 52%),
    linear-gradient(180deg, #0e1836 0%, var(--navy-deep) 46%, #0a1128 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.68;
  font-size: 16px;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); text-decoration: underline; }
h1, h2, h3, h4, .brand { font-family: var(--head); letter-spacing: -.01em; color: var(--ink-strong); }
.wrap { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; }

/* ---- header ---- */
header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(13, 22, 49, .9), rgba(13, 22, 49, .62));
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 800; color: var(--ink-strong); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; color: var(--gold); filter: drop-shadow(0 3px 8px rgba(224, 167, 60, .35)); }
.top-actions { display: flex; gap: 22px; align-items: center; }
.top-actions a { color: var(--muted); font-weight: 500; font-size: 15px; }
.top-actions a:hover { color: var(--ink-strong); text-decoration: none; }
.top-cta { color: var(--navy) !important; background: var(--gold); padding: 8px 15px; border-radius: var(--radius-pill); font-weight: 700; }
.top-cta:hover { background: var(--gold-2); }

/* ---- document ---- */
main { padding: 40px 0 20px; }
.doc-head { max-width: var(--maxw); margin: 0 auto 26px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); background: rgba(224, 167, 60, .1); border: 1px solid var(--line-gold); padding: 6px 13px; border-radius: var(--radius-pill); }
h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.08; margin: 18px 0 12px; font-weight: 800; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.meta b { color: var(--ink); font-weight: 600; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(22px, 4vw, 40px);
}
.card > *:first-child { margin-top: 0; }
.card > *:last-child { margin-bottom: 0; }

h2 { font-size: clamp(21px, 3vw, 26px); margin: 34px 0 12px; font-weight: 700; scroll-margin-top: 84px; }
h2 .num { color: var(--gold); font-weight: 800; margin-right: 8px; }
h3 { font-size: 18px; margin: 22px 0 8px; font-weight: 700; color: var(--ink); }
p { margin: 0 0 14px; }
.lede { font-size: 18px; color: var(--ink); }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 8px; }
li::marker { color: var(--gold); }
strong, b { color: var(--ink-strong); }
hr { border: none; border-top: 1px solid var(--line); margin: 30px 0; }
small { color: var(--muted); }

/* table of contents */
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 30px; }
.toc h2 { margin: 0 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { columns: 2; column-gap: 34px; margin: 0; padding-left: 18px; font-size: 14.5px; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--gold); }

/* callout / note box */
.note { background: var(--panel-2); border: 1px solid var(--line-gold); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; font-size: 15px; }
.note.warn { border-color: rgba(224, 167, 60, .55); }
.note b { color: var(--gold-2); }

/* definition list for contact blocks */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 6px 0 14px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); }

table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-weight: 700; }

/* legal index grid (legal.html hub) */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.tile { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .2s, border-color .2s; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-gold); text-decoration: none; }
.tile h3 { margin: 0 0 6px; color: var(--ink-strong); }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); margin-top: 46px; }
.foot { padding: 30px 0 46px; color: var(--muted); font-size: 14px; }
.foot .links { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 14px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--gold); text-decoration: none; }
.foot .copy { color: var(--muted); }

@media (max-width: 640px) {
  .top-actions .hide-sm { display: none; }
  .toc ol { columns: 1; }
  .grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile:hover { transform: none; }
}
@media print {
  body { background: #fff; color: #111; }
  header, footer, .top-actions, .crumbs { display: none; }
  .card { border: none; background: none; padding: 0; }
  a { color: #111; text-decoration: underline; }
  h1, h2, h3, .brand { color: #111; }
}
