/* Fifth Draw legal documents. Grand Tour palette; system fonts, no external assets. */
:root {
  color-scheme: light dark;
  --canvas: #f3eee4;
  --ink: #1a1b21;
  --secondary: #5b5a63;
  --accent: #a83e32;
  --line: rgb(26 27 33 / 16%);
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--canvas); }
img { display: block; max-width: 100%; }
p, ul, ol, dl { margin: 0 0 1rem; }
strong { font-weight: 600; }
.shell { width: min(64rem, calc(100% - 5rem)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .6rem 1rem; transform: translateY(-200%); background: var(--ink); color: var(--canvas); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 4.75rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font: 600 1.4375rem/1.2 var(--serif); text-decoration: none; white-space: nowrap; }
.brand img { width: 1.3125rem; height: 1.5625rem; }
.legal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.75rem; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--secondary); font-size: .875rem; text-decoration: none; white-space: nowrap; }
.legal-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: .5rem; }
.legal-nav a:hover { color: var(--ink); text-decoration: underline; }
.policy-layout { display: grid; grid-template-columns: 12rem minmax(0, 1fr); grid-template-areas: "contents title" "contents body"; column-gap: 3.5rem; align-items: start; padding-block: 3.5rem 5rem; }
.document-header { grid-area: title; max-width: 66ch; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { margin: 0 0 1rem; font-size: 2.375rem; line-height: 1.18; letter-spacing: -.025em; }
.document-description { max-width: 60ch; margin-bottom: 1rem; color: var(--secondary); }
.updated { margin: 0; color: var(--secondary); font-size: .8125rem; }
.updated time { font-variant-numeric: tabular-nums; }
.contents { grid-area: contents; position: sticky; top: 2rem; max-height: calc(100svh - 4rem); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-right: .5rem; }
.contents-title { margin: .25rem 0 1rem; font-size: .8125rem; font-weight: 600; }
.contents ol { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 1px solid var(--line); }
.contents li { margin: 0; }
.contents a { display: block; padding-block: .375rem; color: var(--secondary); font-size: .8125rem; line-height: 1.5; text-decoration: none; }
.contents a:hover { color: var(--accent); text-decoration: underline; }
.mobile-contents { display: none; }
.policy { grid-area: body; min-width: 0; max-width: 66ch; }
.policy-section { scroll-margin-top: 2rem; }
.policy-section + .policy-section { margin-top: 2.75rem; }
.section-heading { margin-bottom: 1rem; }
.section-heading h2, .policy-section > h2 { margin: 0 0 1rem; font-size: 1.5625rem; line-height: 1.3; letter-spacing: -.012em; }
.section-number { font-variant-numeric: lining-nums; }
.policy h3 { margin: 1.75rem 0 .625rem; font-size: 1.0625rem; line-height: 1.45; font-weight: 600; }
.policy p, .policy li { overflow-wrap: anywhere; }
.policy ul, .policy ol { padding-left: 1.25rem; }
.policy li { padding-left: .25rem; }
.policy li + li { margin-top: .75rem; }
.policy-section > :last-child, .callout > :last-child, .contact-card > :last-child { margin-bottom: 0; }
.policy address { margin: 1.25rem 0; font-style: normal; }
.callout { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 2px solid var(--accent); }
.callout h3 { margin-top: 0; }
.contact-card { margin-top: 1.5rem; }
.contact-card h3 { margin-top: 0; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.25rem; color: var(--secondary); font-size: .8125rem; }
.footer-inner span { margin-right: auto; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--secondary); }
@media (prefers-color-scheme: dark) {
  :root { --canvas: #13141a; --ink: #f4efe6; --secondary: #a9a8b3; --accent: #ef8c79; --line: rgb(244 239 230 / 18%); }
}
@media (max-width: 56.25rem) {
  .shell { width: min(42rem, calc(100% - 2.5rem)); }
  .site-header { flex-wrap: wrap; gap: .5rem; padding-top: 1.25rem; }
  .brand { flex-basis: 100%; }
  .legal-nav { gap: 0 1.5rem; }
  .legal-nav a { min-height: 3rem; }
  .policy-layout { display: flex; flex-direction: column; padding-block: 2rem 3rem; }
  .document-header { width: 100%; padding-bottom: 0; margin-bottom: 1.5rem; border: 0; }
  h1 { font-size: 2rem; }
  .contents { position: static; width: 100%; max-height: none; overflow: visible; padding: 0; margin-bottom: 1.75rem; border-block: 1px solid var(--line); }
  .desktop-contents { display: none; }
  .mobile-contents { display: block; }
  .mobile-contents summary { padding-block: .875rem; font-size: .875rem; cursor: pointer; }
  .mobile-contents nav { padding: .25rem 0 1rem; }
  .contents a { padding-block: .75rem; font-size: .875rem; }
  .policy { max-width: 100%; }
  .section-heading h2, .policy-section > h2 { font-size: 1.5rem; }
  .footer-inner { flex-wrap: wrap; gap: .25rem 1.25rem; }
  .footer-inner span { flex-basis: 100%; }
}
@media (pointer: coarse) and (min-width: 56.251rem) { .contents a { min-height: 2.75rem; display: flex; align-items: center; } }
@media print {
  :root { color-scheme: light; --canvas: #fff; --ink: #111; --secondary: #333; --accent: #111; --line: #ccc; }
  @page { margin: 18mm; }
  body { font-size: 10.5pt; line-height: 1.5; }
  .shell { width: 100%; max-width: none; }
  .skip-link, .legal-nav, .contents, .site-footer { display: none; }
  .site-header { min-height: 0; padding-bottom: 1rem; }
  .brand { font-size: 17pt; }
  .policy-layout { display: block; padding-block: 1.5rem; }
  .document-header, .policy { max-width: none; }
  .document-header { margin-bottom: 1.5rem; padding-bottom: 1rem; }
  h1 { font-size: 26pt; }
  .section-heading h2 { font-size: 16pt; }
  .policy h3 { font-size: 11pt; }
  .section-heading, .policy h3 { break-after: avoid; }
  .policy-section + .policy-section { margin-top: 1.5rem; }
  p, li { orphans: 3; widows: 3; }
  .callout { break-inside: avoid; }
}
