/* Privacy, Terms and 404 pages in the Form Edition v7 design.
   Loaded after form.css, which supplies the fonts, colours, header (.mast),
   footer (.site-footer), labels and the intro style. This file only adds the
   page heading and readable long-form legal text. */

.legal-head { padding-block:clamp(40px,4.3vw,74px) clamp(30px,3.4vw,54px) }
.legal-head h1 { margin-top:19px; font-size:clamp(3.2rem,6.6vw,7rem); white-space:normal }
.legal-head .intro { max-width:30em; margin-top:clamp(16px,1.8vw,26px); padding:0 }
.legal-head .updated { margin-top:14px; color:var(--muted); font-size:.875rem }

/* Same rhythm as the services section: a list on the left, text on the right. */
.legal-layout {
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:7%;
  border-top:1px solid var(--rule);
  padding-bottom:clamp(64px,8vw,120px);
}
.legal-toc { position:sticky; top:20px; align-self:start; display:grid }
.legal-toc p { padding:22px 0 10px; color:var(--muted); font-size:.8125rem; font-weight:620; letter-spacing:.115em; text-transform:uppercase }
.legal-toc a { padding:11px 0; border-bottom:1px solid var(--rule); font:560 1.05rem/1.3 Manrope,Arial,sans-serif; letter-spacing:-.025em }

.legal-body { max-width:42em; padding-top:30px; font-size:1.0625rem; line-height:1.65 }
.legal-body h2 {
  margin:2.1em 0 .55em;
  font-size:clamp(1.45rem,2vw,1.95rem);
  line-height:1.15;
  font-weight:620;
  letter-spacing:-.045em;
  scroll-margin-top:20px;
}
.legal-body h2:first-child { margin-top:0 }
.legal-body p + p { margin-top:.9em }
.legal-body ul { list-style:none; padding:0; margin:.9em 0; display:grid; gap:.55em }
.legal-body li { position:relative; padding-left:21px }
.legal-body li:before { content:""; position:absolute; left:0; top:.82em; width:9px; height:1px; background:var(--violet) }
.legal-body strong { font-weight:650 }
.legal-body a { color:var(--violet); text-decoration:underline; text-underline-offset:3px }

/* 404 */
.notfound { padding-bottom:clamp(80px,10vw,160px) }
.notfound-actions { display:flex; flex-wrap:wrap; gap:14px 26px; align-items:center; margin-top:clamp(26px,3vw,40px) }
.notfound-actions .text-link { border-bottom:2px solid var(--violet); padding-bottom:2px; font-weight:600 }

@media(max-width:850px) {
  .legal-layout { grid-template-columns:1fr; gap:0 }
  .legal-toc { display:none }
}
