:root {
  --cellar: #351244;
  --cellar-deep: #24102f;
  --plum: #7a3fdb;
  --berry: #c468a7;
  --blush: #f7edf7;
  --mist: #efe9f3;
  --paper: #fffdfd;
  --ink: #2d2031;
  --muted: #6d6070;
  --line: #ded4e2;
  --gold: #e7b96d;
  --shadow: 0 24px 70px rgba(53, 18, 68, 0.12);
  --radius: 26px;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(196, 104, 167, 0.15), transparent 25rem),
    linear-gradient(180deg, #fbf8fc 0%, var(--blush) 100%);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.72;
  min-height: 100vh;
}

a {
  color: #6130b7;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cellar);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--cellar);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(53, 18, 68, 0.1);
  background: rgba(255, 253, 253, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cellar);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand img,
.chooser-brand img,
.contact-card img {
  border-radius: 22%;
  box-shadow: 0 7px 18px rgba(53, 18, 68, 0.18);
}

.primary-nav {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--mist);
}

.primary-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-nav a[aria-current="page"] {
  background: var(--paper);
  color: var(--cellar);
  box-shadow: 0 3px 12px rgba(53, 18, 68, 0.1);
}

.language-menu {
  position: relative;
  justify-self: end;
}

.language-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cellar);
  font-size: 0.86rem;
  font-weight: 750;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: " ↓";
}

.language-menu[open] summary::after {
  content: " ↑";
}

.language-menu ul {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 210px;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  list-style: none;
}

.language-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
  background: var(--blush);
  color: var(--cellar);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: clamp(2rem, 8vw, 8rem);
  min-height: 480px;
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1rem, 5vw, 4rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 3rem 0;
  z-index: -1;
  border: 1px solid rgba(53, 18, 68, 0.08);
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(239, 226, 244, 0.7));
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.updated span,
.toc > p {
  margin: 0 0 0.75rem;
  color: #704187;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
.chooser-brand {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--cellar);
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-intro {
  max-width: 690px;
  margin: 1.7rem 0 0;
  color: #514256;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.updated {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: baseline;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.updated span {
  margin: 0;
}

.label-seal {
  position: relative;
  width: 210px;
  aspect-ratio: 0.78;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 45% 45% 28% 28% / 30% 30% 18% 18%;
  background:
    radial-gradient(circle at 50% 26%, var(--gold) 0 7px, transparent 8px),
    radial-gradient(circle at 42% 34%, #f1c77f 0 7px, transparent 8px),
    radial-gradient(circle at 58% 34%, #dca65a 0 7px, transparent 8px),
    radial-gradient(circle at 50% 42%, #efd19a 0 7px, transparent 8px),
    linear-gradient(155deg, #6e378a, var(--cellar-deep));
  box-shadow: 0 32px 60px rgba(53, 18, 68, 0.25);
  transform: rotate(3deg);
}

.label-seal::before,
.label-seal::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
}

.label-seal::after {
  inset: auto 50% 54px auto;
  width: 1px;
  height: 65px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
}

.label-seal span {
  position: absolute;
  right: -2.1rem;
  bottom: 5rem;
  color: rgba(255, 255, 255, 0.76);
  font: 800 0.72rem/1 ui-monospace, monospace;
  letter-spacing: 0.28em;
  transform: rotate(90deg);
}

.support-seal {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.88) 0 22px, transparent 23px),
    linear-gradient(155deg, var(--berry), var(--cellar));
  transform: rotate(-3deg);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.highlights article {
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: var(--paper);
}

.highlights h2,
.quick-section h2,
.faq-column > h2 {
  margin: 0 0 0.55rem;
  color: var(--cellar);
  font-size: 1.18rem;
  line-height: 1.25;
}

.highlights p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.content-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: clamp(2rem, 7vw, 7rem);
  justify-content: center;
  align-items: start;
  padding-bottom: 7rem;
}

.toc {
  position: sticky;
  top: 7rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 253, 0.75);
}

.toc ol {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  background: var(--blush);
  color: var(--cellar);
}

.legal-article {
  min-width: 0;
}

.policy-section {
  padding: 0 0 3.8rem;
  scroll-margin-top: 7rem;
}

.policy-section + .policy-section {
  padding-top: 3.8rem;
  border-top: 1px solid var(--line);
}

.policy-section > h2 {
  margin: 0 0 1.2rem;
  color: var(--cellar);
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.policy-section p {
  color: #514756;
  overflow-wrap: anywhere;
}

.content-list,
.steps {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.35rem;
}

.content-list li::marker,
.steps li::marker {
  color: var(--plum);
  font-weight: 800;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.data-grid article,
.provider-list article {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.data-grid h3,
.provider-list h3 {
  margin: 0 0 0.45rem;
  color: var(--cellar);
  font-size: 1.02rem;
  line-height: 1.3;
}

.data-grid p,
.provider-list p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
}

.provider-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.provider-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.provider-list article > a {
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 750;
}

.notice {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: #fff7e9;
}

.notice p {
  margin: 0;
  color: #5b4422;
}

.quick-section {
  margin-bottom: 5rem;
}

.quick-section > h2 {
  margin-bottom: 1rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.quick-grid a {
  display: grid;
  gap: 0.3rem;
  min-height: 132px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(53, 18, 68, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.quick-grid a:hover {
  color: var(--cellar);
  box-shadow: 0 20px 42px rgba(53, 18, 68, 0.12);
  transform: translateY(-3px);
}

.quick-grid strong {
  font-family: ui-rounded, "SF Pro Rounded", sans-serif;
  font-size: 1.08rem;
}

.quick-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  justify-content: center;
  padding-bottom: 7rem;
}

.faq-column > h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.faq {
  border-top: 1px solid var(--line);
  scroll-margin-top: 7rem;
}

.faq:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  cursor: pointer;
  padding: 1.2rem 3rem 1.2rem 0;
  color: var(--cellar);
  font-family: ui-rounded, "SF Pro Rounded", sans-serif;
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.4;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0.5rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--mist);
  color: var(--cellar);
  font: 500 1.3rem/1.62rem sans-serif;
  text-align: center;
  transform: translateY(-50%);
}

.faq[open] summary::after {
  content: "–";
}

.faq-answer {
  padding: 0 2.5rem 1.5rem 0;
  color: #514756;
  overflow-wrap: anywhere;
}

.faq-answer p:first-child {
  margin-top: 0;
}

.contact-card {
  position: sticky;
  top: 7rem;
  padding: 1.7rem;
  border-radius: 28px;
  background: linear-gradient(150deg, var(--cellar), #58216b);
  color: white;
  box-shadow: var(--shadow);
}

.contact-card .eyebrow {
  margin-top: 1.2rem;
  color: #e9c9ef;
}

.contact-card h2 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}

.contact-card p {
  color: #eee2f1;
  overflow-wrap: anywhere;
}

.contact-card > span {
  display: block;
  margin-top: 0.9rem;
  color: #d8c8dc;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--cellar);
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  color: var(--plum);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
  padding: 2.5rem clamp(1rem, 4vw, 4rem);
  background: var(--cellar-deep);
  color: #e9ddec;
}

.site-footer strong {
  color: white;
  font-family: ui-rounded, sans-serif;
  font-size: 1.25rem;
}

.site-footer p {
  margin: 0.2rem 0 0;
  color: #cbbacd;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
}

.footer-links a {
  color: white;
  font-size: 0.86rem;
}

.site-footer .copyright {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.chooser-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 12%, rgba(231, 185, 109, 0.18), transparent 20rem),
    radial-gradient(circle at 12% 84%, rgba(196, 104, 167, 0.28), transparent 24rem),
    var(--cellar-deep);
  color: white;
}

.chooser-shell {
  width: min(940px, calc(100% - 2rem));
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.chooser-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 3.5rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.chooser-page .eyebrow {
  color: #e9c9ef;
}

.chooser-page h1 {
  color: white;
  font-size: clamp(2.7rem, 8vw, 5.6rem);
}

.chooser-intro {
  margin: 1.5rem 0 2.5rem;
  color: #d8c8dc;
  font-size: 1.05rem;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.language-grid article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.language-grid p {
  margin: 0;
  font-weight: 750;
}

.language-grid article div {
  display: flex;
  gap: 0.8rem;
}

.language-grid a,
.chooser-contact a {
  color: white;
  font-size: 0.85rem;
}

.chooser-contact {
  margin-top: 2rem;
  color: #cbbacd;
  font-size: 0.86rem;
}

@media (max-width: 850px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    margin-top: 0.55rem;
  }

  .hero {
    grid-template-columns: 1fr 150px;
    min-height: 430px;
  }

  .label-seal {
    width: 145px;
  }

  .highlights,
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .content-layout,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .toc,
  .contact-card {
    position: static;
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-layout .contact-card {
    grid-row: 1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding-inline: 0.8rem;
  }

  .brand span {
    display: none;
  }

  .language-menu summary {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  main {
    width: min(100% - 1.25rem, 1180px);
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 4.2rem 1rem 4.5rem;
  }

  .hero::before {
    inset: 1.3rem 0;
    border-radius: 28px;
  }

  .label-seal {
    display: none;
  }

  .highlights {
    margin-bottom: 3.5rem;
  }

  .content-layout,
  .support-layout {
    padding-bottom: 4rem;
  }

  .toc ol,
  .data-grid {
    grid-template-columns: 1fr;
  }

  .provider-list article {
    grid-template-columns: 1fr;
  }

  .quick-grid a {
    min-height: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .language-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .toc,
  .label-seal,
  .site-footer {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  main,
  .content-layout {
    display: block;
    width: 100%;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 2rem;
  }

  .hero::before {
    display: none;
  }

  .highlights {
    box-shadow: none;
  }

  a {
    color: inherit;
  }
}
