/* Hallmark · pages: pages/privacy.html, pages/terms.html, pages/cookies.html, 404.html · hero: Title, no band · legal pages are long documents: one ruled column at a readable measure · composition only: every word, link, id and heading level as in public_html */
/* Hallmark · answered F25 · the cookie table's Name column holds machine strings about 215px wide on a 356px phone region; pinned, it would leave a 140px window for each Purpose, so the whole table scrolls inside DESIGN.md's labelled region */
/* offline.html keeps its own <style>: sw.js precaches that page and js/offline.js only, so a linked sheet would be missing offline. */
/* Owner decisions, not waivers: the "Legal" and "Error 404" eyebrows, the footer middle dots, the date wording ("Effective Date: March 2026") and a linked index of the numbered sections all wait for the owner. */
/* Colours, faces, sizes, spacing and timings all come from css/style.css :root. */

/* === TITLE HERO: left-aligned, no band, shared by the legal pages and the 404 === */
.legal-hero .text-center{text-align:start}
.legal-hero .text-center p{margin-inline:0}
/* rem, not ch: a ch measure is narrower in the fallback face, so the lede re-wrapped when Inter arrived (CLS 0.028 on privacy) */
.legal-hero .hero-desc{font-size:var(--text-lg);line-height:1.55;max-width:41rem}
.legal-hero .hero-desc:last-child{margin-bottom:0}
@media (max-width:767.98px){.legal-hero{padding-bottom:var(--space-6)}}

/* === THE DOCUMENT: one column at the container's left edge, the cookie table across the container ===
   Three wrappers carry the text (privacy: div.legal-content, terms: div.legal-content inside .container,
   cookies: section.legal-content); all three become the same container-wide grid. The column is 37rem (52ch of
   Inter at 18px), not --measure: 68ch measured 81 to 93 characters per line, 52ch measures 66 to 74. In rem, so its
   width does not change when the web font replaces the fallback. */
.legal-content{
  display:grid;grid-template-columns:minmax(0,37rem) minmax(0,1fr);
  width:min(100% - 2 * var(--gutter), var(--container));margin-inline:auto;
  padding-block:var(--section-y);
  font-size:var(--text-article);line-height:var(--leading-article);color:var(--color-ink-2);
}
.container>.legal-content{width:auto}
.legal-content>*{grid-column:1}
.legal-content>*+*{margin-top:var(--space-4)}
.legal-content strong{color:var(--color-ink)}

/* the date line: one treatment for "Last Updated" and "Effective Date" */
.legal-content>:is(.legal-updated,.effective-date,.last-updated){font:500 var(--text-sm)/1.5 var(--font-body);color:var(--color-muted)}
.legal-content>.last-updated strong{font-weight:inherit;color:inherit}
.legal-content>:is(.legal-updated,.effective-date,.last-updated)+*{margin-top:var(--space-5)}

/* clause heads: a hairline opens each numbered clause; privacy's own divider gives way to it */
.legal-content>.legal-divider{display:none}
.legal-content>h2{
  margin-top:var(--space-8);padding-top:var(--space-5);border-top:var(--rule-hair) solid var(--color-rule);
  font-size:var(--text-xl);
}
.legal-content>h3{margin-top:var(--space-6);font:600 var(--text-lg)/1.35 var(--font-body);letter-spacing:0}
.legal-content>:is(h2,h3)+*{margin-top:var(--space-3)}

.legal-content :is(ul,ol){padding-left:1.25em;list-style:square}
.legal-content li+li{margin-top:var(--space-2)}
.legal-content li::marker{color:var(--color-rule-strong)}

/* the contact panel closing each policy */
.legal-content>:is(.contact-box,.contact-block){
  margin-top:var(--space-5);padding:var(--space-6);
  background:var(--color-paper-2);border:var(--rule-hair) solid var(--color-rule);border-radius:var(--radius-card);
}
.legal-content :is(.contact-box,.contact-block) p+p{margin-top:var(--space-1)}
.legal-content>.contact-box+p{margin-top:var(--space-6)}
/* cookies.html (the one policy whose .legal-content is the section): the response-time note closing its panel */
section.legal-content>.contact-block>p:last-child{margin-top:var(--space-4);font-size:var(--text-sm);color:var(--color-muted)}
/* small phones: narrower side padding keeps the email address on one line at 320px */
@media (max-width:479.98px){.legal-content>:is(.contact-box,.contact-block){padding:var(--space-5) var(--space-4)}}

/* === THE COOKIE TABLE: a labelled region that scrolls sideways on narrow screens; cells wrap === */
/* the wrap is a data-scroll-region (A10): it overflows only below about 800px, and main.js gives it a tab stop only while it does, so every browser, Safari too, can scroll it from the keyboard; style.css draws its inset focus ring */
.legal-content>.cookie-table-wrap{
  grid-column:1/-1;margin-top:var(--space-5);
  overflow-x:auto;overscroll-behavior-x:contain;
  border:var(--rule-hair) solid var(--color-rule);border-radius:var(--radius-card);
}
.cookie-table-wrap table{width:100%;min-width:46rem;border-collapse:collapse;font-size:var(--text-base);line-height:var(--leading-body)}
.cookie-table-wrap th{
  padding:var(--space-3) var(--space-4);text-align:start;vertical-align:bottom;
  font:600 var(--text-sm)/1.4 var(--font-body);color:var(--color-ink-2);
  border-bottom:var(--rule-hair) solid var(--color-rule-strong);
}
.cookie-table-wrap td{padding:var(--space-3) var(--space-4);vertical-align:top;border-bottom:var(--rule-hair) solid var(--color-rule)}
.cookie-table-wrap tr:last-child td{border-bottom:0}
/* the Purpose column carries the sentences: it takes the larger share, so rows stay short on phones and on paper */
.cookie-table-wrap th:nth-child(2){width:45%}

/* === 404: the hero's actions, then the destinations as ruled rows beside their head (the brief layout) === */
.notfound-actions{display:flex;flex-wrap:wrap;gap:var(--space-3)}
.notfound-links{padding-block:var(--section-y)}
.notfound-links h2{margin-bottom:var(--space-5)}
.notfound-links ul{border-bottom:var(--rule-hair) solid var(--color-rule)}
.notfound-links li{border-top:var(--rule-hair) solid var(--color-rule)}
.notfound-links a{
  display:flex;align-items:center;min-height:52px;padding-block:var(--space-2);
  font:500 var(--text-lg)/1.3 var(--font-body);color:var(--color-ink);
  text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:1px;text-underline-offset:6px;
  transition:text-decoration-color var(--dur-fast) var(--ease-out);
}
@media (hover:hover){.notfound-links a:hover{text-decoration-color:currentColor}}
@media (max-width:479.98px){.notfound-actions .btn{width:100%}}
/* short phones (under 700px of height): the actions clear the compact consent sheet (A17, A29's ladder, step 1). Scoped to the 404 hero: the policy heroes have no action. */
@media (max-width:767.98px) and (max-height:700px){
  .legal-hero:has(.notfound-actions){padding-block:var(--space-4) var(--space-5)}
  .legal-hero:has(.notfound-actions) .headline-md{margin-bottom:var(--space-3)}
  .legal-hero:has(.notfound-actions) .hero-desc{margin-bottom:var(--space-4)}
}
/* 320 x 568 class (A29's step 2): the 85px sheet starts at y 483 */
@media (max-width:359.98px) and (max-height:600px){
  .legal-hero:has(.notfound-actions){padding-block:var(--space-3) var(--space-4)}
  .legal-hero:has(.notfound-actions) .eyebrow{margin-bottom:var(--space-2)}
  .legal-hero:has(.notfound-actions) .headline-md{margin-bottom:var(--space-2);font-size:var(--text-2xl)}
  .legal-hero:has(.notfound-actions) .hero-desc{margin-bottom:var(--space-3)}
  .notfound-actions{gap:var(--space-2)}
}
/* phones: the destinations start below the fold, so no link sits under or half under the consent sheet at any phone size (A35); the hero is one screen tall, the sheet covers the foot of it */
@media (max-width:599.98px){.legal-hero:has(.notfound-actions){min-block-size:calc(100svh - var(--nav-h))}}
@media (min-width:1024px){
  .notfound-links{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--col-gap);align-items:start}
  .notfound-links h2{grid-column:1/5;margin-bottom:0}
  .notfound-links ul{grid-column:6/-1}
}

/* === PRINT: the policy across the sheet in black text (style.css sets the ink and hides the chrome); the table unclipped === */
@media print{
  .legal-content{grid-template-columns:minmax(0,1fr);padding-block:0}
  .legal-content>.cookie-table-wrap{overflow:visible}
  /* the table runs longer than a sheet: it breaks between rows instead of leaving a blank page before it */
  .cookie-table-wrap table{min-width:0;break-inside:auto}
  .cookie-table-wrap tr{break-inside:avoid}
  .legal-content>:is(.contact-box,.contact-block){break-inside:avoid}
}
