/* The policy pages: terms, privacy, refunds, shipping and contact.
   Values copied from the :root tokens and .footer in styles.css (this file doesn't import it), so if the
   brand colours change there, change them here too. */
:root {
  --night: #140605;
  --paper: #82322B;
  --ink: #3f130f;
  --cream: #FBDFBA;
  --gold: #E3A36B;
  --ring: #DCA879;
  --cream-soft: rgba(251, 223, 186, 0.78);
  --cream-dim: rgba(251, 223, 186, 0.56);
  --line: rgba(220, 168, 121, 0.55);
  --hairline: rgba(220, 168, 121, 0.16);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
  --measure: 40rem;
  --gutter: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--night);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  font: 400 1.0625rem/1.65 var(--body);
  /* a warm glow at the top, like light on the jar */
  background: radial-gradient(56rem 26rem at 50% -8rem, rgba(130, 50, 43, 0.42), transparent 72%) no-repeat, var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; }

::selection { color: var(--ink); background: var(--gold); }

a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(227, 163, 107, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--cream); text-decoration-color: currentColor; }
a:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; border-radius: 4px; }

/* the reading column: 40rem, with a 16px gutter (more on phones with a notch) */
.top,
.page,
.footer {
  padding-left: max(var(--gutter), env(safe-area-inset-left), calc((100% - var(--measure)) / 2));
  padding-right: max(var(--gutter), env(safe-area-inset-right), calc((100% - var(--measure)) / 2));
}

/* ---------- header ---------- */
.top {
  padding-top: calc(14px + env(safe-area-inset-top));
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.top__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--cream);
  text-decoration: none;
  font: 700 0.9rem/1 var(--display);
  letter-spacing: 0.1em;
}
.top__brand img { border-radius: 50%; }
.top__brand:hover { color: var(--gold); }

/* ---------- page ---------- */
.page {
  flex: 1;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 10px;
  font: 600 0.72rem/1.3 var(--display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 0;
  font: 600 clamp(1.85rem, 6.4vw, 2.6rem)/1.12 var(--display);
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.updated {
  margin: 12px 0 0;
  font-size: 0.86rem;
  font-style: italic;
  color: var(--cream-dim);
}

.lede {
  margin: 22px 0 0;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--cream-soft);
}

h2 {
  margin: 44px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font: 600 1.18rem/1.3 var(--display);
  letter-spacing: 0.04em;
  color: var(--gold);
  text-wrap: balance;
  scroll-margin-top: 16px;
}

h3 {
  margin: 28px 0 0;
  font: 600 1rem/1.35 var(--display);
  letter-spacing: 0.04em;
  color: var(--cream);
}

p { margin: 14px 0 0; }

ul,
ol {
  margin: 14px 0 0;
  padding-left: 1.4em;
}
li { margin: 6px 0 0; padding-left: 0.2em; }
li::marker { color: var(--gold); }
ol li::marker { font-family: var(--display); font-weight: 600; }

strong { font-weight: 600; color: var(--cream); }

address { font-style: normal; }

/* "In short": the page in four lines, at the top */
.short {
  margin: 30px 0 0;
  padding: 18px 20px 20px;
  border: 1px solid rgba(220, 168, 121, 0.32);
  border-radius: 16px;
  background: rgba(130, 50, 43, 0.22);
}
.short h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.short ul { margin-top: 10px; }

/* label + value pairs: seller details, grievance officer, contact */
.facts {
  margin: 18px 0 0;
  padding: 6px 20px;
  border: 1px solid rgba(220, 168, 121, 0.32);
  border-radius: 16px;
  background: rgba(130, 50, 43, 0.16);
}
.facts > div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 4px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}
.facts > div:first-child { border-top: 0; }
.facts dt {
  padding-top: 0.28em;
  font: 600 0.72rem/1.4 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.facts dd { margin: 0; }

/* small tables: prices, delivery times */
.table {
  width: 100%;
  margin: 18px 0 0;
  border-collapse: collapse;
  font-size: 1rem;
}
.table th,
.table td {
  padding: 10px 12px 10px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}
.table th:last-child,
.table td:last-child { padding-right: 0; }
.table thead th {
  font: 600 0.72rem/1.4 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom-color: var(--line);
}
.table .num { white-space: nowrap; }

.note {
  font-size: 0.94rem;
  color: var(--cream-soft);
}

/* something the owner still has to fill in: hard to miss on purpose */
.fill {
  padding: 0 0.35em;
  border: 1.5px dashed var(--gold);
  border-radius: 5px;
  color: var(--gold);
  background: rgba(227, 163, 107, 0.1);
  font-style: italic;
}

.nowrap { white-space: nowrap; }

/* ---------- footer (mirrors .footer in styles.css, plus the policy links) ---------- */
.footer {
  --measure: 56rem; /* wider than the text, so the six links fit on one line on a laptop */
  padding-top: 32px;
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(251, 223, 186, 0.62);
  background: var(--night);
  border-top: 1px solid var(--hairline);
}
.footer p { margin: 2px 0; }
.footer span { white-space: nowrap; } /* narrow phones break at the dot, not inside the address */
.footer a { color: inherit; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 18px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}
.footer__links li { margin: 0; padding: 0; }
.footer__links a {
  display: inline-block;
  padding: 8px 0;
  color: var(--cream-soft);
  text-decoration: none;
}
.footer__links a:hover { color: var(--gold); }
.footer__links a[aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: currentColor;
}
.footer__brand {
  margin-bottom: 8px !important;
  font: 700 0.9rem/1 var(--display);
  letter-spacing: 0.14em;
  color: var(--gold);
}
.footer .copy { margin-top: 10px; font-family: var(--display); letter-spacing: 0.1em; }

@media (max-width: 479px) {
  .facts { padding: 4px 16px; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .short { padding: 16px 16px 18px; }
}

@media print {
  body { color: #000; background: #fff; }
  .top, .footer__links { display: none; }
  a { color: inherit; }
  h2, .facts dt, .table thead th, .eyebrow { color: #000; }
}
