:root {
  --bg: #F3F4F6;
  --ink: #111114;
  --text: #45454F;
  --muted: #6A6A74;
  --accent: #8E3F64;
  --accent-hover: #6E2F4D;
  --gutter: 20px;
}
@media (min-width: 900px) { :root { --gutter: 80px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Links inside running text need more than color to stand out (WCAG 1.4.1) */
.legal a { text-decoration: underline; text-underline-offset: 2px; }

/* Skip link: hidden until it receives keyboard focus */
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 10;
  padding: 12px 18px; background: var(--ink); color: #FFFFFF; font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }
main:focus { outline: none; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.display { font-family: "Karantina", "Rubik", sans-serif; font-weight: 700; letter-spacing: -0.5px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 19px; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: 22px; height: 28px; }
.site-nav { display: flex; gap: 20px; font-size: 15px; }
.site-nav a { color: var(--text); }
.site-nav a, .site-footer nav a { display: inline-block; padding-block: 8px; }

.draft { margin: 8px 0 0; padding: 12px 16px; border: 1.5px solid #B42318; color: #B42318; font-size: 15px; }

.legal { max-width: 720px; padding-block: 32px 64px; }
.legal h1 { margin: 0; font-size: clamp(64px, 12vw, 120px); line-height: 0.9; }
.legal .updated { margin: 12px 0 32px; color: var(--muted); font-size: 15px; }
.legal h2 { margin: 40px 0 8px; font-size: 21px; font-weight: 600; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.legal h2.summary { margin: 0 0 8px; padding-top: 0; border-top: 0; font-size: 17px; }
.legal h3 { margin: 20px 0 4px; font-size: 17px; font-weight: 600; }
.legal p, .legal li { color: var(--text); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-inline-start: 22px; display: grid; gap: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 32px; border-top: 1.5px solid var(--ink); font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; column-gap: 20px; }
.site-footer a { color: var(--muted); }

/* Tables in the legal pages scroll inside their box on narrow screens. */
.legal .table { overflow-x: auto; margin: 8px 0 16px; border: 1.5px solid var(--ink); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.legal th, .legal td { padding: 10px 12px; text-align: start; vertical-align: top; color: var(--text); border-top: 1px solid #D5D6DB; }
.legal th { color: var(--ink); font-weight: 600; background: #E7E8EC; border-top: 0; }
.legal td:first-child { color: var(--ink); font-weight: 500; min-width: 120px; }
.legal td { min-width: 110px; }
/* Phones: each row becomes a card, the column name above each value. */
@media (max-width: 600px) {
  .legal .table { border: 0; overflow: visible; }
  /* Hidden visually but kept for screen readers */
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; min-width: 0; }
  .legal tr { border: 1.5px solid var(--ink); padding: 12px 14px; margin-bottom: 10px; }
  .legal td { border: 0; padding: 0; }
  .legal td + td { margin-top: 8px; }
  .legal td:first-child { font-weight: 600; font-size: 16px; }
  .legal td + td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--muted); }
}

/* A detail still missing before publishing. */
.legal .todo { background: #FFF1C2; color: #7A4B00; padding: 0 3px; }
.legal h3[id] { scroll-margin-top: 16px; }
