/* ===============================================================
   Benton Collective — Legal pages (Privacy Policy / Terms of Use)
   Shared editorial document styling. ADA-conscious: AA contrast,
   visible focus, semantic rhythm.
   =============================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-VariableFont_opsz_wght.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900; font-style: italic; font-display: swap;
}

:root {
  --bc-deep-charcoal: #222222;
  --bc-soft-black:    #333333;
  --bc-white:         #F8F8F8;
  --bc-paper:         #FAF9F7;

  --bg:   var(--bc-paper);
  --fg1:  var(--bc-deep-charcoal);
  --fg2:  var(--bc-soft-black);
  /* Darkened warm taupe for fine print — meets WCAG AA (≈5:1 on paper) */
  --meta: #6E6862;

  --hair:        rgba(34, 34, 34, 0.12);
  --hair-strong: rgba(34, 34, 34, 0.32);

  --display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --body:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --script:  "Playfair Display", Georgia, serif;

  --track-eyebrow:  0.32em;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg2);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Skip link (keyboard / screen reader) ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--bc-deep-charcoal);
  color: var(--bc-white);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */
.legal-header {
  padding: 28px clamp(24px, 5vw, 64px);
  border-bottom: 1px solid var(--hair);
}
.legal-header a {
  display: inline-block;
  border-radius: 2px;
}
.legal-header img { display: block; height: 22px; width: auto; }

/* ---------- Document column ---------- */
main.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) clamp(24px, 6vw, 40px) clamp(64px, 9vh, 120px);
}

.legal .eyebrow {
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--meta);
  margin: 0 0 22px;
}

.legal h1 {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg1);
  margin: 0 0 18px;
  text-wrap: balance;
}
.legal h1 .tm {
  font-size: 0.3em; font-weight: 300; vertical-align: super; margin-left: 0.06em;
}

.legal .updated {
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--meta);
  margin: 0 0 14px;
}

.legal .intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg2);
  margin: 0 0 8px;
  padding-bottom: clamp(28px, 4vh, 40px);
  border-bottom: 1px solid var(--hair);
  text-wrap: pretty;
}
.legal .intro p { margin: 0 0 18px; }
.legal .intro p:last-child { margin-bottom: 0; }

.legal h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--fg1);
  margin: clamp(40px, 5.5vh, 56px) 0 14px;
}

.legal h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--fg1);
  margin: 26px 0 10px;
}

.legal p { margin: 0 0 16px; text-wrap: pretty; }
.legal p:last-child { margin-bottom: 0; }

.legal ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.legal ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.legal ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--meta);
}

.legal a {
  color: var(--fg1);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease);
}
.legal a:hover { color: var(--bc-soft-black); text-decoration-color: var(--hair-strong); }

.legal .contact-block {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--hair);
  border-radius: 2px;
  background: var(--bc-white);
}
.legal .contact-block p { margin: 0 0 4px; line-height: 1.55; }
.legal .contact-block p:last-child { margin-bottom: 0; }
.legal .contact-block strong { font-weight: 500; color: var(--fg1); }

/* ---------- Footer ---------- */
.legal-footer {
  border-top: 1px solid var(--hair);
  padding: 32px clamp(24px, 5vw, 64px) 40px;
}
.legal-footer .inner {
  max-width: var(--maxw, 1280px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}
.legal-footer .copy {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--meta);
  margin: 0;
}
.legal-footer nav {
  display: flex;
  gap: 22px;
}
.legal-footer nav a {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg2);
  text-decoration: none;
  border-radius: 2px;
  transition: color 0.2s var(--ease);
}
.legal-footer nav a:hover { color: var(--fg1); }
.legal-footer nav a[aria-current="page"] { color: var(--fg1); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Focus visibility (keyboard) ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--bc-deep-charcoal);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 560px) {
  .legal-footer .inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
