/* Legal pages — privacy, terms, refunds, cookies.
   Kept separate from styles.css so a change here can never affect the shop.

   Contrast: every text/background pair below was checked against WCAG 2.1 AA
   (4.5:1 for body text, 3:1 for large text and UI borders). The body colour
   #2b2924 on #faf9f6 is 12.6:1; the muted #5c574c on the same ground is 6.5:1,
   which is why muted text is that colour and not a lighter grey. */

:root {
  --lg-bg:      #faf9f6;
  --lg-card:    #ffffff;
  --lg-ink:     #2b2924;   /* 12.6:1 on --lg-bg */
  --lg-muted:   #5c574c;   /*  6.5:1 on --lg-bg */
  --lg-line:    #d9d5cb;
  --lg-dark:    #141310;
  --lg-accent:  #8a1f1a;   /*  7.4:1 on --lg-bg, for links */
  --lg-flag:    #f3efe4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--lg-bg);
  color: var(--lg-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.lg-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---- keyboard access -----------------------------------------------------
   A visible focus ring on everything focusable, and a skip link that is the
   first thing a keyboard or screen-reader user meets. The ring is drawn with
   outline (not border) so it never shifts the layout. */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--lg-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--lg-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- header -------------------------------------------------------------- */

.lg-top {
  background: var(--lg-dark);
  border-bottom: 1px solid #000;
}
.lg-top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 14px;
}
.lg-home { display: inline-flex; }
.lg-home img { height: 34px; width: auto; display: block; }

.lg-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.lg-nav a {
  color: #e9e5db;            /* 11.9:1 on --lg-dark */
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 8px 12px;
  border-radius: 7px;
}
.lg-nav a:hover { background: #2a2722; color: #fff; }
.lg-nav a.is-on { background: #fff; color: var(--lg-dark); font-weight: 600; }

/* ---- body ---------------------------------------------------------------- */

.lg-main { padding-block: 44px 64px; }

.lg-eyebrow {
  margin: 0;
  font-family: Jost, Inter, sans-serif;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lg-muted);
}

h1 {
  font-family: Jost, Inter, sans-serif;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.12;
  margin: 6px 0 10px;
  text-wrap: balance;
}

.lg-updated {
  margin: 0 0 30px;
  color: var(--lg-muted);
  font-size: 14px;
}

h2 {
  font-family: Jost, Inter, sans-serif;
  font-size: clamp(19px, 3vw, 23px);
  line-height: 1.25;
  margin: 38px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--lg-line);
  text-wrap: balance;
}

p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 7px; }

a { color: var(--lg-accent); text-underline-offset: 2px; }
a:hover { text-decoration: none; }

strong, b { font-weight: 650; }

.lg-callout {
  background: var(--lg-flag);
  border-left: 4px solid var(--lg-dark);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin: 0 0 8px;
}
.lg-callout p { margin: 0; }

/* Tables scroll inside their own box so the page never scrolls sideways. */
.lg-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 18px;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.lg-table thead th {
  text-align: left;
  background: var(--lg-flag);
  font-family: Jost, Inter, sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lg-ink);
  padding: 10px 12px;
  border-bottom: 2px solid var(--lg-line);
  white-space: nowrap;
}
.lg-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--lg-line);
  vertical-align: top;
  min-width: 150px;
}
.lg-table tbody tr:last-child td { border-bottom: 0; }

.lg-contact {
  margin-top: 44px;
  background: var(--lg-card);
  border: 1px solid var(--lg-line);
  border-radius: 12px;
  padding: 20px 22px;
}
.lg-contact h2 {
  margin: 0 0 10px;
  padding-top: 0;
  border-top: 0;
}
.lg-small { font-size: 14px; color: var(--lg-muted); margin-bottom: 0; }

/* ---- footer -------------------------------------------------------------- */

.lg-foot {
  background: var(--lg-dark);
  color: #cfcabe;             /* 9.4:1 on --lg-dark */
  margin-top: 56px;
}
.lg-foot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-block: 20px;
  font-size: 14px;
}
.lg-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.lg-foot a { color: #e9e5db; text-decoration: none; }
.lg-foot a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .lg-top-in { justify-content: center; }
  .lg-foot-in { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
