/* Shared styles for the policy pages (terms, cookies, privacy, allergens, customer service).
   Tokens and chrome match reviews.html so these pages feel like part of the same site. */
:root {
  --cream: #F7EFE0; --cream-2: #ECDFC1; --paper: #FFFBF4;
  --espresso: #2C1B10; --espresso-soft: #6E5A47;
  --caramel: #8F5A2E; --gold: #D9B25F;
  --line: rgba(44, 27, 16, 0.14); --line-strong: rgba(44, 27, 16, 0.32);
  --font-display: "Cormorant Garamond", Didot, "Times New Roman", serif;
  --font-body: "Jost", Futura, "Helvetica Neue", sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); color: var(--espresso); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background-image: linear-gradient(rgba(247, 239, 224, 0.76), rgba(247, 239, 224, 0.76)), url("images/linen.webp");
  background-size: auto, 360px auto;
  margin: 0; font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: 1.7;
}
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }

.bar {
  position: sticky; top: 0; z-index: 10;
  background-color: var(--cream);
  background-image: linear-gradient(rgba(247, 239, 224, 0.82), rgba(247, 239, 224, 0.82)), url("images/linen.webp");
  background-size: auto, 360px auto;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--espresso);
}
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); max-width: 1240px; margin: 0 auto; }
.brand { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
.back, .policies a {
  padding: 8px 18px; border-radius: 999px; text-decoration: none; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1.5px var(--espresso); transition: transform 0.4s var(--ease), background-color 0.4s var(--ease);
}
.back:hover, .policies a:hover { background: rgba(44, 27, 16, 0.08); }
.back:active, .policies a:active { transform: scale(0.96); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.intro { padding-block: 56px 24px; }
.eyebrow { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--caramel); }
h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; letter-spacing: -0.03em; margin-top: 16px; }
h1 em { font-style: italic; color: var(--caramel); }
.lede { margin-top: 20px; max-width: 34em; color: var(--espresso-soft); }

/* Row of pills linking the five policy pages; the current one is filled */
.policies { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.policies a[aria-current="page"] { background: var(--gold); box-shadow: none; }

.prose { max-width: 46em; padding-block: 24px 8px; }
.prose h2 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.15; letter-spacing: -0.02em; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p, .prose ul, .prose dl { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--caramel); }
.prose a { color: var(--caramel); text-underline-offset: 3px; }
.prose a:hover { color: var(--espresso); }
.prose strong { font-weight: 500; }

/* Allergen list: the 14 allergens as a quiet grid of tags */
.prose .allergens { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.prose .allergens li { margin: 0; padding: 10px 14px; border-radius: 4px; background: transparent; box-shadow: 0 0 0 1px var(--line-strong); font-size: 15px; }
.notice { margin-top: 24px; padding: 14px 18px; border-radius: 4px; background: transparent; box-shadow: 0 0 0 1px var(--espresso); font-size: 15px; }

.facts { display: grid; gap: 0; margin-top: 16px; }
.facts div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--caramel); }
.facts dd { margin: 0; }
@media (min-width: 640px) { .facts div { grid-template-columns: 11em 1fr; gap: 16px; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; text-decoration: none;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; box-shadow: inset 0 0 0 1.5px var(--espresso);
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease);
}
.prose .btn { color: var(--espresso); }
.btn:hover { background-color: rgba(44, 27, 16, 0.08); }
.btn:active { transform: scale(0.97); }
.btn--gold, .prose .btn--gold:hover { background-color: var(--gold); box-shadow: none; }
.btn--gold:hover { background-color: #E3BF72; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.foot { margin-top: 64px; padding: 40px 0 32px; background-color: var(--cream-2); background-image: linear-gradient(rgba(236, 223, 193, 0.76), rgba(236, 223, 193, 0.76)), url("images/linen.webp"); background-size: auto, 360px auto; border-top: 2px solid var(--espresso); }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; }
.foot a { color: var(--caramel); text-decoration: none; letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; padding: 6px 0; display: inline-block; }
.foot a:hover { text-decoration: underline; }
.legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--espresso-soft); }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
