/* ============================================================
 *  shared/legal.css: the privacy policy and terms pages
 *  (act.dadshift.org.uk/privacy and /terms, 24 Oct 2026).
 *  House colours and font from action-page.css; a plain reading
 *  layout (one column, ~68 characters wide) instead of the step flow.
 *  Phone: off-white page. Desktop (760px+): white card on the yellow
 *  top glow, like the action pages.
 * ============================================================ */
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-Variable.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
:root { --y: #F6CD45; --ink: #141414; --bg: #F9FAF9; --card: #FFFFFF; --line: #DADDD5; --mute: #5A5F58; --r: 8px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Figtree", "Helvetica Neue", Arial, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid #2E6BE6; outline-offset: 2px; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .in { padding: 8px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1080px; margin: 0 auto; }
.top img { height: 34px; width: auto; display: block; }
.toplink { font-size: 14px; font-weight: 700; }

.doc { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; overflow-wrap: anywhere; }
.kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
h1 { font-size: clamp(32px, 8vw, 46px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 8px; }
h2 { font-size: 23px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; margin: 40px 0 12px; scroll-margin-top: 16px; }
h3 { font-size: 19px; font-weight: 800; line-height: 1.25; margin: 30px 0 10px; scroll-margin-top: 16px; }
h4 { font-size: 17px; font-weight: 800; line-height: 1.3; margin: 22px 0 6px; scroll-margin-top: 16px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin: 0 0 6px; }
.updated { color: var(--mute); font-size: 15px; }

.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 20px 0 28px; font-size: 16px; }
.toc-h { font-weight: 800; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 22px; }
.toc ol ol { list-style: none; padding-left: 0; margin: 4px 0 6px; }
.toc li { margin: 0 0 5px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc-more { margin: 10px 0 0; font-size: 15px; }

.changes { margin-top: 44px; padding: 16px 18px; background: #FFF8DC; border-left: 4px solid var(--y); border-radius: var(--r); font-size: 15px; }
.changes h2 { font-size: 19px; margin: 0 0 4px; }
.changes .when { color: var(--mute); margin-bottom: 8px; }
.changes ul { margin-bottom: 0; }

.foot { border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.foot .in { max-width: 760px; margin: 0 auto; padding: 18px 16px 28px; }

@media (min-width: 760px) {
  body { background: linear-gradient(180deg, var(--y) 0, var(--y) 260px, var(--bg) 620px); }
  .doc { background: var(--card); border-radius: var(--r); box-shadow: 0 6px 28px rgba(0,0,0,.10); margin: 28px auto 32px; padding: 40px 48px 48px; }
  .toc { background: var(--bg); }
  .foot { border-top: 0; }
}
