/* Nusen legal pages: Privacy policy and Terms of use. Same tokens, type and footer as the landing page, on the day ground throughout, text held to a reading width. */
:root {
  --stone: #EDEAE4;
  --stone-alt: #E4E1DA;
  --sky: #9BB0BA;
  --dusk: #476074;
  --night: #33363A;
  --ink: #33363A;
  --ink-2: #585C54;
  --ink-3: #767A72;
  --hairline: #D6D2C9;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Outfit', 'Helvetica Neue', Helvetica, sans-serif;
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
h1, h2, p, ul, table { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--dusk); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--dusk); outline-offset: 2px; }
.serif { font-family: var(--serif); font-weight: 300; font-variation-settings: 'opsz' 9; }
.wrap { max-width: 1120px; margin: 0 auto; }

/* Top: the wordmark leads home */
.top { padding: 40px 24px 0; }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
/* Wordmark: the brand's SVG, trimmed to the letters, 11 px tall; the link around it is 44 px tall */
.wordmark { display: inline-block; padding-block: 16px 17px; }
.wordmark img { display: block; width: auto; height: 11px; }
.back { font-size: 15px; line-height: 1.5; padding: 12px 0; }

/* The document */
.legal { padding: clamp(56px, 8vw, 96px) 24px clamp(80px, 12vw, 120px); }
.doc { max-width: 720px; }
.doc-title { font-size: clamp(36px, calc(16px + 2.5vw), 48px); line-height: 1.12; color: var(--ink); }
.doc-date { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.doc-lede { margin-top: 32px; font-size: 20px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.doc section { margin-top: 56px; }
.doc h2 { font-size: 26px; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.doc p, .doc li { font-size: 17px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.doc h2 + p, .doc h2 + ul, .doc h2 + .table-wrap { margin-top: 16px; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 16px; }
.doc .table-wrap + p { margin-top: 16px; }
.doc .list { display: flex; flex-direction: column; gap: 12px; }
.doc .list li { position: relative; padding-left: 20px; }
.doc .list li::before { content: ''; position: absolute; left: 4px; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.term { font-weight: 500; color: var(--ink); }
.doc p a, .doc li a { text-decoration: underline; text-underline-offset: 3px; }
.inline-button { font: inherit; color: var(--dusk); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.88em; }

/* Still to confirm: tinted so nothing unfinished goes live by accident */
.tbc { background: color-mix(in oklab, var(--sky) 40%, var(--stone)); color: var(--ink); border-radius: 4px; padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* What we collect: a table on wide screens, one block per row on phones */
.table-wrap { border-top: 1px solid var(--hairline); }
.data { width: 100%; border-collapse: collapse; }
.data th, .data td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; line-height: 1.5; }
.data thead th { font-weight: 500; color: var(--ink); font-size: 13px; }
.data tbody th { font-weight: 500; color: var(--ink); width: 22%; }
.data td { color: var(--ink-2); }
@media (max-width: 700px) {
  .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data, .data tbody, .data tr, .data tbody th, .data td { display: block; width: auto; }
  .data tr { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
  .data tbody th, .data td { padding: 0; border: 0; }
  .data tbody th { font-size: 17px; }
  .data td { margin-top: 8px; }
  .data td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; color: var(--ink-3); }
}

/* Footer, as on the landing page */
.footer { padding: 0 24px 36px; }
.footer-inner {
  max-width: 1120px; margin: 0 auto; border-top: 1px solid var(--hairline); padding-top: 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-size: 13px; line-height: 1.5; color: var(--ink-2);
}
.footer-links { display: flex; align-items: center; justify-content: center; }
.footer-links a { display: inline-block; padding: 12px 6px; }
.footer-links a[aria-current="page"] { color: var(--ink); }
.nw { white-space: nowrap; }
.link-button { font: inherit; color: var(--dusk); background: none; border: 0; padding: 12px 6px; cursor: pointer; }
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Cookie choice, as on the landing page */
.consent{position:fixed;z-index:10;right:24px;bottom:24px;width:min(400px,calc(100% - 48px));box-sizing:border-box;padding:24px;border:1px solid var(--hairline);border-radius:16px;background:var(--stone);color:var(--ink);box-shadow:0 12px 40px rgba(51,54,58,.22);animation:consent-in .35s ease-out}
.consent h2{margin:0}
.consent-title{font-family:var(--serif);font-weight:300;font-variation-settings:'opsz' 9;font-size:20px;line-height:1.3;color:var(--ink)}
.consent-text{margin-top:8px;font-size:15px;line-height:1.5;color:var(--ink-2);text-wrap:pretty}
.consent-text a{color:var(--dusk);text-decoration:underline;text-underline-offset:3px}
.consent-actions{display:flex;gap:12px;margin-top:20px}
.consent-button{flex:1 1 0;min-width:0;height:44px;padding:0 12px;border:1px solid var(--ink);border-radius:12px;background:transparent;font:500 15px/1 var(--sans);color:var(--ink);cursor:pointer}
.consent-button:hover{background:var(--stone-alt)}
.consent-more{display:block;margin:4px 0 -12px -6px}
.consent-choose{display:flex;flex-direction:column;gap:16px;margin-top:16px}
.consent-option{display:flex;gap:12px;align-items:flex-start;cursor:pointer}
.consent-option input{flex:none;width:20px;height:20px;margin:1px 0 0;accent-color:var(--dusk);cursor:pointer}
.consent-option-name{display:block;font-size:15px;line-height:1.4;font-weight:500;color:var(--ink)}
.consent-option-text{display:block;font-size:13px;line-height:1.5;color:var(--ink-2)}
.consent-save{flex:none;width:100%;margin-top:4px}
@keyframes consent-in{from{opacity:0;transform:translateY(8px)}}
@media (max-width:600px){.consent{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:auto;padding:20px}}
@media (prefers-reduced-motion:reduce){.consent{animation:none}}
