:root {
  color-scheme: light;
  --ink: #142038;
  --muted: #46546b;
  --blue: #204ed0;
  --mist: #eaf1f8;
  --line: #d4deea;
  --shell: 80rem;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: 0.2em; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 2; top: 0.5rem; left: var(--gutter); padding: 0.5rem 1rem; background: #fff; }

/* Use the same logo size and header spacing as the homepage. */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-block; width: min(100%, 9.5rem); }
.brand img { width: 100%; height: auto; }
.back-to-shop { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.back-to-shop:hover { color: var(--blue); }

.policy-hero { padding-block: clamp(2.5rem, 4.5vw, 4rem); background: var(--mist); }
.policy-hero h1 { margin: 0; font-size: clamp(2.5rem, 4.7vw, 4.25rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; }
.policy-description { max-width: 64rem; margin: 1rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.6; }
.policy-updated { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

.policy-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem clamp(1.25rem, 3vw, 2.75rem); padding-block: 1rem 0; }
.policy-tabs a { display: inline-flex; align-items: center; min-height: 3rem; padding-block: 0.5rem; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 700; text-decoration: none; }
.policy-tabs a:hover, .policy-tabs a[aria-current="page"] { color: var(--blue); }
.policy-tabs a[aria-current="page"] { border-color: currentColor; }

.policy-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2rem, 4vw, 3.5rem); }
.policy-side { position: sticky; top: 1.5rem; max-height: calc(100dvh - 3rem); overflow-y: auto; padding: 0.25rem; margin: -0.25rem; scrollbar-width: thin; }
.policy-contents summary { list-style: none; margin-bottom: 1.125rem; font-size: 1.25rem; font-weight: 700; }
.policy-contents summary::-webkit-details-marker { display: none; }
.policy-anchor-list { display: grid; gap: 0.25rem; }
.policy-anchor-list a { position: relative; display: block; padding: 0.625rem 0.5rem 0.625rem 1.125rem; color: var(--muted); font-size: 0.875rem; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.policy-anchor-list a:hover, .policy-anchor-list a[aria-current="location"] { color: var(--blue); }
.policy-anchor-list a[aria-current="location"]::before { content: ""; position: absolute; left: 0; top: 0.875rem; bottom: 0.875rem; width: 3px; min-height: 1rem; border-radius: 2px; background: var(--blue); }

.policy-flow { min-width: 0; color: var(--muted); font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.policy-intro { margin-bottom: 2rem; }
.policy-intro p { margin: 0; }
.policy-intro p + p { margin-top: 0.75rem; }
.faq-item { scroll-margin-top: 1.75rem; }
.faq-item + .faq-item { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.faq-heading { margin: 0 0 0.875rem; color: var(--ink); font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.25; }
.faq-answer p, .faq-answer ul, .faq-answer ol { margin: 0; }
.faq-answer > :not(:first-child) { margin-top: 0.875rem; }
.faq-answer ul, .faq-answer ol { padding-left: 1.5rem; }
.faq-answer li + li { margin-top: 0.375rem; }
.faq-answer strong { color: var(--ink); font-weight: 650; }

.policy-support { display: flex; align-items: center; gap: 1.5rem; margin-bottom: clamp(1.5rem, 4vw, 3.25rem); padding: 1.5rem 2rem; border-radius: 0.5rem; background: var(--mist); }
.policy-support svg { flex: none; width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.policy-support h2 { margin: 0 0 0.375rem; font-size: 1.125rem; line-height: 1.4; }
.policy-support p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.7; overflow-wrap: anywhere; }
.policy-support a { font-weight: 650; }

@media (max-width: 62rem) {
  .policy-layout { grid-template-columns: 12rem minmax(0, 1fr); gap: 2rem; }
}

@media (max-width: 43rem) {
  .header-inner { min-height: 3.75rem; }
  .brand { width: clamp(5.25rem, 24vw, 7.5rem); }
  .back-to-shop { font-size: 0.875rem; }
  .policy-hero { padding-block: 2.375rem; }
  .policy-tabs { gap: 0 1.25rem; }
  .policy-tabs a { min-height: 2.75rem; font-size: 0.8125rem; }
  .policy-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .policy-side { position: static; max-height: none; overflow: visible; }
  .policy-contents { padding: 0.875rem 1rem; border: 1px solid var(--line); border-radius: 0.375rem; }
  .policy-contents summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; font-size: 1rem; cursor: pointer; }
  .policy-contents summary::after { content: "+"; color: var(--blue); font-size: 1.25rem; font-weight: 400; }
  .policy-contents[open] summary::after { content: "−"; }
  .policy-anchor-list { max-height: 15rem; margin-top: 0.75rem; padding: 0.25rem; overflow-y: auto; }
  .policy-flow { font-size: 0.9375rem; }
  .policy-intro { margin-bottom: 1.75rem; }
  .policy-support { align-items: flex-start; gap: 1rem; padding: 1.25rem; }
  .policy-support svg { width: 1.5rem; height: 1.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
