/* Stylesheet for the static policy pages (/shipping/, /refunds/).
   Independent of the Vite bundle and the WebGL landing page so these render
   instantly, without JS, for a customer or a compliance reviewer.

   Deliberately plain. These are legal documents: the job is to be read and
   understood, not to be designed. Brand typeface and colours, nothing else. */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: oklch(0.8642 0.0226 89.81);
  --text: oklch(0.2015 0.0183 125.44);
  --text-soft: oklch(0.45 0.012 125.44);
  --primary: oklch(0.3762 0.0901 141.56);
  --line: oklch(0.2015 0.0183 125.44 / 0.18);
  --gut: clamp(20px, 4vw, 56px);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

html {
  color-scheme: light only;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ── Masthead ─────────────────────────────────────────────────────────── */
.masthead {
  padding: 26px var(--gut);
  border-bottom: 1px solid var(--line);
}
.masthead a {
  display: inline-block;
  width: 78px;
  opacity: 0.92;
}
.masthead a:hover {
  opacity: 0.65;
}
.masthead img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Document ─────────────────────────────────────────────────────────── */
main {
  flex: 1;
  width: 100%;
  max-width: 68ch;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) var(--gut) clamp(48px, 7vw, 72px);
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.updated {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  margin: 36px 0 12px;
}

p + p,
p + ul,
ul + p,
p + table,
table + p {
  margin-top: 12px;
}

ul {
  padding-left: 20px;
}
li {
  margin-top: 6px;
}

strong {
  font-weight: 600;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  opacity: 0.7;
}
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Delivery times ───────────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}
th,
td {
  text-align: left;
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-weight: 600;
}
td:last-child {
  padding-right: 0;
  white-space: nowrap;
}

/* ── Footer, identical to the landing page ────────────────────────────── */
.page-footer {
  border-top: 1px solid var(--line);
  padding: 26px var(--gut) 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.page-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.page-footer nav a {
  color: inherit;
  text-decoration: none;
}
.page-footer nav a:hover {
  color: var(--text);
  opacity: 1;
}
.page-footer p {
  opacity: 0.75;
}
