/* ==========================================================================
   Sweet Homes — legal pages (privacy, terms, accessibility)

   These are documents, not the landing page: no parallax, no reveal
   animations, no JavaScript at all. Somebody arriving here wants to read a
   specific clause, often on a phone, sometimes with a screen reader, and
   occasionally because they are annoyed. Everything below serves legibility.

   Colours are the same tokens as main.css. Green on cream measures 12.08:1,
   so body copy has a very large margin over the 4.5:1 minimum — deliberately,
   because a policy that is hard to read is the first thing an enforcement
   letter points at.
   ========================================================================== */

:root {
  --cream: #f7efd6;
  --green: #003420;
  --ink: #00160d;
  --ochre: #755706;        /* 5.85:1 on cream — see the note in main.css */
  --rule: rgba(0, 52, 32, 0.18);

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
}

.u-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--green);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 18px;
}
.u-skip-link:focus { left: 8px; top: 8px; }

.doc {
  max-width: 72ch;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 40px) clamp(64px, 10vw, 120px);
}

.doc__home {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  margin-bottom: clamp(28px, 5vw, 48px);
}
.doc__home:hover { color: var(--green); border-color: var(--green); }

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  margin: 0 0 12px;
}

.doc__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 clamp(28px, 5vw, 40px);
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.2;
  margin: clamp(40px, 6vw, 64px) 0 14px;
  padding-top: clamp(16px, 2.5vw, 24px);
  border-top: 1px solid var(--rule);
}

h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  margin: 28px 0 8px;
}

p, li { max-width: 68ch; }
p { margin: 0 0 16px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ochre); }

strong { font-weight: 600; }

/* Tables carry the vendor list and the retention schedule — the two things a
   regulator asks for by name, so they need to survive a 320px screen. They
   scroll horizontally rather than compressing into unreadable columns. */
.doc__table-wrap { overflow-x: auto; margin: 0 0 20px; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 15px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--rule);
}
th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ochre);
}

.doc__footer {
  margin-top: clamp(48px, 8vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ochre);
}
.doc__footer a { color: var(--ochre); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
