/* The legal and information pages (/shipping, /returns, /contact, /terms, /privacy, /withdraw; src/pages.js).
   Same brand as the storefront and the section pages: Saira + Knewave, the ink ground, the pastel holo
   foil and the gold accent. Built for long text: one column of at most ~70 characters, 17 px type.
   No inline styles anywhere: the pages carry a strict CSP. Mobile first. */

/* The two fonts, served by this site from pages/static/fonts/ (src/pages.js, /fonts/<file>): nothing is
   loaded from Google. Latin subset only (the unicode-range of the Google Fonts "latin" block); other
   characters fall back to the system font. Downloaded once with scripts/fonts-download.js; SIL Open Font
   Licence next to the files (OFL-Saira.txt, OFL-Knewave.txt). */
@font-face{font-family:'Saira';font-style:normal;font-weight:300 900;font-stretch:100%;font-display:swap;
  src:url(/fonts/saira-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Knewave';font-style:normal;font-weight:400;font-display:swap;
  src:url(/fonts/knewave-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  color-scheme:dark;
  --ink:#0e0c14; --ink-2:#17141f; --ink-3:#201b2c;
  --paper:#fff; --text:#ebe8f1; --mute:#b5afc4; --gold:#E6C068; --sky:#9ad0ff;
  --line:rgba(255,255,255,.14); --field:#8a8499;
  --holo:linear-gradient(110deg,#ff9ae5,#9ad0ff,#a8ffd8,#fff3a1,#ffb0c8,#c3a6ff);
  --f-display:'Knewave',cursive;
  --f-ui:'Saira',system-ui,-apple-system,'Segoe UI',sans-serif;
  --gut:16px;
  --measure:70ch;
  --inset-top:env(safe-area-inset-top,0px); --inset-bottom:env(safe-area-inset-bottom,0px);
}
@media (min-width:700px){:root{--gut:32px}}
*,*::before,*::after{box-sizing:border-box}
html{background:var(--ink);-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{position:relative;margin:0;min-height:100vh;background:var(--ink);color:var(--text);font-family:var(--f-ui);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden}
@media (min-width:700px){body{font-size:17px}}
/* The storefront's soft glows, behind everything. */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:
  radial-gradient(circle at 0% 0%,rgba(255,154,229,.18),rgba(0,0,0,0) 45%),
  radial-gradient(circle at 100% 30%,rgba(154,208,255,.14),rgba(0,0,0,0) 45%),
  radial-gradient(circle at 20% 100%,rgba(168,255,216,.10),rgba(0,0,0,0) 45%)}
img{max-width:100%;height:auto}
::selection{background:var(--gold);color:var(--ink)}
a{color:var(--gold);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:#fff3a1;text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--sky);outline-offset:3px;border-radius:4px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:var(--gut);top:-100px;z-index:50;padding:10px 16px;border-radius:12px;background:var(--gold);color:var(--ink);font-weight:800;text-decoration:none}
.skip:focus{top:calc(10px + var(--inset-top))}

/* ---------- top bar ---------- */
.top{position:relative;background:rgba(14,12,20,.86);padding-top:var(--inset-top)}
.top::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--holo);opacity:.6}
.top-in{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1100px;height:64px;margin:0 auto;padding:0 calc(var(--gut) - 6px)}
.brand{display:flex;align-items:center;height:48px;padding:0 6px;border-radius:12px}
.brand:hover{background:rgba(255,255,255,.06)}
.brand img{display:block;width:40px;height:40px}
.top-end{display:flex;align-items:center;gap:8px;min-width:0}
.back{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid var(--line);color:#fff;font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap}
.back:hover{background:rgba(255,255,255,.16);color:#fff}
/* On a phone the switch and the long label do not fit next to the logo: the link shows a short label, and keeps
   the long one for screen readers (the short one is aria-hidden). */
.back-short{display:none}
@media (max-width:419px){
  .back{padding:0 14px}
  .back-long{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .back-short{display:inline}
}
/* The language switch (src/i18n.js switcherHtml), as in the shop's header: a pill of three ?lang= links, the
   current one (aria-current) white with dark text. */
.jl-lang{display:flex;align-items:center;flex:0 0 auto;gap:2px;padding:3px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.jl-lang a{display:grid;place-items:center;min-width:34px;height:36px;padding:0 7px;border-radius:999px;font-size:12px;font-weight:800;line-height:1;letter-spacing:.06em;color:var(--mute);text-decoration:none}
.jl-lang a:hover{color:#fff;background:rgba(255,255,255,.1)}
.jl-lang a[aria-current]{background:#fff;color:var(--ink)}
.jl-lang a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media (prefers-reduced-motion:no-preference){.jl-lang a{transition:background .2s,color .2s}}
@media (max-width:400px){.jl-lang a{min-width:30px;padding:0 5px}}

/* ---------- the text ---------- */
main{display:block}
.doc{max-width:calc(var(--measure) + 2 * var(--gut));margin:0 auto;padding:32px var(--gut) 56px}
@media (min-width:700px){.doc{padding-top:56px;padding-bottom:80px}}
.doc-head{margin:0 0 24px}
.over{margin:0 0 6px;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
h1{margin:0;font-family:var(--f-display);font-weight:400;font-size:clamp(40px,11vw,68px);line-height:1;letter-spacing:-.005em;color:#fff;overflow-wrap:break-word}
.updated{margin:12px 0 0;font-size:14px;color:var(--mute)}
h2{margin:44px 0 12px;font-size:22px;line-height:1.3;font-weight:800;color:#fff;scroll-margin-top:16px}
h2::before{content:"";display:block;width:40px;height:3px;margin:0 0 12px;border-radius:2px;background:var(--holo)}
h3{margin:28px 0 8px;font-size:18px;line-height:1.35;font-weight:800;color:#fff;scroll-margin-top:16px}
p,ul,ol,dl{margin:0 0 14px}
ul,ol{padding-left:1.4em}
li{margin:0 0 6px}
li::marker{color:var(--gold)}
strong{color:#fff;font-weight:700}
.lead{font-size:1.1em;color:#fff}
.note{padding:14px 16px;border-radius:14px;background:var(--ink-2);border:1px solid var(--line)}
.small{font-size:14px;color:var(--mute)}

/* open points for the client or the lawyer */
mark.todo{padding:0 .3em;border-radius:4px;background:var(--gold);color:var(--ink);font-weight:600;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.draft{margin:0 0 28px;padding:14px 16px;border-radius:14px;border:2px dashed var(--gold);background:rgba(230,192,104,.08);font-size:15px}
.draft strong{color:var(--gold)}

/* table of contents (terms, privacy) */
.toc{margin:0 0 8px;padding:16px 18px;border-radius:16px;background:var(--ink-2);border:1px solid var(--line)}
.toc-title{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.toc ol{margin:0;padding-left:1.4em;font-size:15px}
.toc li{margin:0 0 4px}
@media (min-width:700px){.toc ol{columns:2;column-gap:32px}.toc li{break-inside:avoid}}

/* label and value lists: company details, rates, what we keep */
.company,.facts{display:grid;gap:0;margin:0 0 16px;padding:4px 16px;border-radius:16px;background:var(--ink-2);border:1px solid var(--line)}
.company div,.facts div{display:grid;gap:2px;padding:10px 0;border-bottom:1px solid var(--line)}
.company div:last-child,.facts div:last-child{border-bottom:0}
.company dt,.facts dt{font-size:13px;font-weight:700;letter-spacing:.04em;color:var(--mute)}
.company dd,.facts dd{margin:0;color:#fff;overflow-wrap:anywhere}
@media (min-width:560px){
  .company div,.facts div{grid-template-columns:minmax(0,15em) minmax(0,1fr);gap:16px}
}

/* the model withdrawal form: a sheet of paper, also on screen */
.wform{margin:20px 0 16px;padding:18px 18px 8px;border-radius:14px;background:#f6f3ec;color:var(--ink);border:2px dashed #6b6478;font-size:15px;scroll-margin-top:16px}
.wform h2{margin:0 0 4px;color:var(--ink);font-size:19px}
.wform h2::before{display:none}
.wform p{margin:0 0 12px}
.wform .wform-note{color:#4f4960}
.wform a{color:#5b3fa0}
/* blanks to fill in: a line to write on (the long ones get a line of their own) */
.wform .blank{display:inline-block;min-width:8em;height:1.2em;vertical-align:bottom;border-bottom:1px solid #6b6478;color:transparent;overflow:hidden}
.wform .blank.long{display:block;width:100%;height:1.9em}

/* contact form */
.form{display:grid;gap:18px;margin:8px 0 16px;padding:20px 18px;border-radius:16px;background:var(--ink-2);border:1px solid var(--line)}
.field{display:grid;gap:6px}
.field label{font-weight:700;color:#fff}
.opt{font-weight:400;color:var(--mute)}
.hint{margin:0;font-size:14px;color:var(--mute)}
input,select,textarea{width:100%;min-height:48px;padding:10px 14px;border-radius:12px;border:1px solid var(--field);background:var(--ink);color:#fff;font:inherit;font-size:16px}
textarea{min-height:150px;resize:vertical}
select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--mute) 50%),linear-gradient(135deg,var(--mute) 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%;background-size:6px 6px;background-repeat:no-repeat;padding-right:40px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--sky);outline-offset:2px;border-color:var(--sky)}
.btn{justify-self:start;min-height:52px;padding:0 26px;border:0;border-radius:14px;background:var(--gold);color:var(--ink);font:inherit;font-weight:800;font-size:16px;cursor:pointer}
.btn:hover{background:#f0d08a}
.hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
/* the forms' answers (contact status, withdrawal steps; src/contact.js, src/withdraw.js) */
.status{margin:8px 0 16px;padding:14px 16px;border-radius:14px;border:2px solid var(--line);background:var(--ink-2);overflow-wrap:anywhere}
.status p{margin:0 0 8px}.status p:last-child,.status ul:last-child{margin-bottom:0}
.status.ok{border-color:#5fe3a1;background:rgba(95,227,161,.08)}
.status.ok strong{color:#c4ffe6}
.status.err{border-color:#ff6b88;background:rgba(255,107,136,.08)}
.status.err strong{color:#ffc2cf}
.status h2{margin:0 0 8px}
.status h2::before{background:#5fe3a1}
.field-err{margin:0;font-size:14px;font-weight:700;color:#ffc2cf}
input[aria-invalid="true"],textarea[aria-invalid="true"]{border-color:#ff6b88}
.step{margin:8px 0 16px}
.step h3{margin-top:22px}
fieldset.pick{display:grid;gap:10px;margin:0;padding:0;border:0;min-width:0}
fieldset.pick legend{margin:0 0 6px;padding:0;font-weight:700;color:#fff}
.check{display:flex;align-items:flex-start;gap:12px}
.check input{flex:none;width:24px;height:24px;min-height:0;margin:2px 0 0;padding:0;accent-color:var(--gold)}
.check label{flex:1;min-width:0;color:#fff;overflow-wrap:anywhere}
.buttons{display:flex;flex-wrap:wrap;gap:12px}
.btn-2{background:transparent;color:#fff;border:1px solid var(--field)}
.btn-2:hover{background:rgba(255,255,255,.08)}

/* ---------- footer ---------- */
.foot{position:relative;border-top:1px solid var(--line);background:rgba(14,12,20,.6);color:var(--mute);font-size:14px;line-height:1.6}
.foot-in{max-width:1100px;margin:0 auto;padding:28px var(--gut) calc(32px + var(--inset-bottom));display:grid;gap:16px}
.foot p{margin:0}
.foot strong{color:#fff}
.foot a{color:var(--text)}
.foot a:hover{color:var(--gold)}
.foot-links{display:flex;flex-wrap:wrap;gap:4px 8px;margin:0;padding:0;list-style:none}
.foot-links li{margin:0}
.foot-links a{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;margin-left:-10px;border-radius:10px;font-weight:700;text-decoration:none}
.foot-links a[aria-current="page"]{color:var(--gold);text-decoration:underline;text-underline-offset:4px}
.foot-company{display:grid;gap:2px}
.foot-legal{font-size:13px;color:#9d97ad}

/* ---------- print: black on white, without the site around the text ---------- */
@media print{
  :root{color-scheme:light}
  html,body{background:#fff;color:#000;font-size:11pt;line-height:1.45}
  body::before,.skip,.top,.foot-nav,.toc,.form,.back{display:none}
  .doc{max-width:none;padding:0}
  h1,h2,h3,strong,.company dd,.facts dd{color:#000}
  h1{font-size:28pt}
  h2::before{display:none}
  a,.foot a,.foot strong,.wform a{color:#000}
  li::marker{color:#000}
  .over,.updated,.small,.hint,.company dt,.facts dt{color:#333}
  .draft{border-color:#000;background:none}
  .draft strong{color:#000}
  mark.todo{background:none;color:#000;font-weight:700;text-decoration:underline dotted}
  .company,.facts,.note,.status{background:none;border-color:#999}
  .status strong{color:#000}
  .company div,.facts div{border-color:#ccc}
  .wform{background:#fff;border-color:#000;break-inside:avoid}
  .wform .blank{border-color:#000}
  .foot{border-color:#999;background:none;color:#000}
  .foot-legal{color:#333}
  h2,h3{break-after:avoid}
  /* Opened as /returns#withdrawal-form (the link in the order confirmation): print only the form. */
  body:has(#withdrawal-form:target) .doc > :not(#withdrawal-form),
  body:has(#withdrawal-form:target) .foot{display:none}
}
@media (forced-colors:active){
  mark.todo{border:1px solid Mark}
  h2::before{background:CanvasText}
  .jl-lang a[aria-current]{forced-color-adjust:none;background:Highlight;color:HighlightText}
}
