/* ============================================================
   Legal pages - shared stylesheet
   Single file; every legal/*.html page loads this.
   To rebrand, change the --accent value only.
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface: #fafafc;
  --fg: #1a1a1f;
  --muted: #5f5f70;
  --line: #e4e4ec;
  --accent: #c2185b;
  --accent-soft: #fdf2f7;
  --warn-bg: #fff8e1;
  --warn-line: #f0c419;
  --warn-fg: #6b5200;
  --ok-bg: #eefaf3;
  --ok-line: #4caf82;
  --danger-bg: #fdefef;
  --danger-line: #e05252;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131317;
    --surface: #1a1a20;
    --fg: #e9e9f0;
    --muted: #a2a2b4;
    --line: #2b2b35;
    --accent: #f06292;
    --accent-soft: #241820;
    --warn-bg: #2c2617;
    --warn-line: #7d6620;
    --warn-fg: #f0d68a;
    --ok-bg: #16241d;
    --ok-line: #3d7a5f;
    --danger-bg: #2a1a1a;
    --danger-line: #8a3d3d;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 28px 20px 96px; }

/* --- Page header --- */
.top { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 34px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 10px;
}
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -.02em; }
.meta { color: var(--muted); font-size: 14px; margin: 0; }
.meta span + span::before { content: "·"; margin: 0 8px; }

/* --- Headings --- */
h2 {
  font-size: 21px; margin: 42px 0 14px; letter-spacing: -.01em;
  padding-top: 14px; border-top: 1px solid var(--line);
}
h2:first-of-type { border-top: 0; padding-top: 0; }
h3 { font-size: 17px; margin: 26px 0 10px; }

p, li { color: var(--fg); }
ul, ol { padding-left: 22px; }
li { margin: 7px 0; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }

/* --- Placeholders to fill in --- */
.ph {
  background: var(--warn-bg); border: 1px dashed var(--warn-line);
  color: var(--warn-fg); border-radius: 5px; padding: 1px 6px;
  font-weight: 650; font-size: .93em; white-space: nowrap;
}

/* --- Callout boxes --- */
.box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin: 22px 0;
}
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.box.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.box.warn, .box.warn p, .box.warn li { color: var(--warn-fg); }
.box.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.box.danger { background: var(--danger-bg); border-color: var(--danger-line); }
.box .label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; display: block; margin-bottom: 8px; opacity: .85;
}

/* --- Tables --- */
.tablewrap { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); font-weight: 650; font-size: 13px;
     text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }

/* --- Contact card --- */
.contact { display: grid; gap: 10px 18px; grid-template-columns: max-content 1fr; }
.contact dt { color: var(--muted); font-size: 14px; }
.contact dd { margin: 0; }

/* --- Document list (index) --- */
.cards { display: grid; gap: 12px; margin: 26px 0; }
.card {
  display: block; padding: 17px 19px; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  background: var(--surface); transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.card .t { font-weight: 650; display: block; margin-bottom: 3px; }
.card .d { color: var(--muted); font-size: 14px; display: block; }
.card .tag {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 4px;
  padding: 2px 7px; margin-left: 8px; white-space: nowrap;
}

/* --- Footer --- */
footer {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
footer a { color: var(--muted); }

/* --- Forms (data subject request) --- */
.field { margin: 16px 0; }
.field label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 15px;
  color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 7px;
}
.field textarea { min-height: 110px; resize: vertical; }
.checkline { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.checkline input { margin-top: 6px; flex: 0 0 auto; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0;
  padding: 12px 22px; border-radius: 7px; font: inherit; font-weight: 650;
  cursor: pointer; text-decoration: none;
}
.btn:hover { opacity: .9; text-decoration: none; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li {
  counter-increment: s; position: relative; padding-left: 42px; margin: 18px 0;
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 560px) {
  h1 { font-size: 25px; }
  .wrap { padding: 22px 16px 72px; }
  .contact { grid-template-columns: 1fr; gap: 4px 0; }
  .contact dd { margin-bottom: 12px; }
}
