/* Components. Colors come from tokens.css only. */

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

html {
  color-scheme: light;
  scroll-padding-top: var(--nav-h);
}

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

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font);
  font-size: var(--t-body-size);
  font-weight: var(--t-body-weight);
  line-height: var(--t-body-lh);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
}

h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--bg-ice);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 80;
  transform: translateY(-160%);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-pill);
  font-size: var(--t-body-size);
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

#main:focus {
  outline: none;
}

.section {
  padding: var(--section-y) var(--page-x);
}

.section[id] {
  scroll-margin-top: var(--nav-h);
}

.section--base {
  background: var(--bg-base);
  --c-text: var(--text);
  --c-body: var(--text-body);
  --c-muted: var(--text-muted);
}

.section--ice {
  background: var(--bg-ice);
  --c-text: var(--text);
  --c-body: var(--text-body);
  --c-muted: var(--text-body);
}

.section--dark {
  background: var(--bg-dark);
  --c-text: var(--text-on-dark);
  --c-body: var(--text-on-dark-body);
  --c-muted: var(--text-on-dark-muted);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.display,
.h2,
.h3,
.card__title,
.terms__value--lg,
.stat__value {
  font-weight: 600;
  color: var(--c-text, var(--text));
}

.display {
  font-size: var(--t-display-size);
  line-height: var(--t-display-lh);
  font-weight: var(--t-display-weight);
  letter-spacing: var(--t-display-track);
}

.h2 {
  font-size: var(--t-h2-size);
  line-height: var(--t-h2-lh);
  font-weight: var(--t-h2-weight);
  letter-spacing: var(--t-h2-track);
}

.h2 br {
  display: none;
}

.h2--on-dark {
  color: var(--text-on-dark);
}

.h3,
.card__title,
.terms__value--lg {
  font-size: var(--t-h3-size);
  line-height: var(--t-h3-lh);
  font-weight: var(--t-h3-weight);
  letter-spacing: var(--t-h3-track);
}

.lead {
  font-size: var(--t-body-lg-size);
  line-height: var(--t-body-lg-lh);
  font-weight: var(--t-body-lg-weight);
  color: var(--c-body);
}

.small,
.card__text {
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
  font-weight: var(--t-small-weight);
  color: var(--c-body, var(--text-body));
}

.eyebrow {
  font-size: var(--t-eyebrow-size);
  line-height: var(--t-eyebrow-lh);
  font-weight: var(--t-eyebrow-weight);
  letter-spacing: var(--t-eyebrow-track);
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow--on-ice {
  color: var(--text-body);
}

.eyebrow--on-dark {
  color: var(--accent);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: var(--bg-base);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(12px)) {
  .nav {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
  }

  /* backdrop-filter would trap the fixed overlay inside the bar */
  .nav:has(#nav-check:checked) {
    background: transparent;
    backdrop-filter: none;
  }
}

.nav__bar {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  padding-inline: var(--page-x);
  max-width: calc(var(--container) + var(--page-x) * 2);
  margin-inline: auto;
}

.nav__wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.wordmark__logo {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 20px;
}

.nav__links a {
  color: var(--text-body);
  font-size: var(--t-body-size);
  line-height: 1.2;
  text-decoration: none;
  padding-block: var(--space-2);
}

.nav__links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav__links a[aria-current="page"],
.nav__links a[aria-current="page"]:hover,
.nav__overlay a[aria-current="page"],
.nav__overlay a[aria-current="page"]:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.nav__end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
}

.btn.nav__cta {
  display: none;
}

.nav__menu {
  position: relative;
  width: 44px;
  height: 44px;
}

.nav__check {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.nav__check:focus {
  outline: none;
}

.nav__check:focus-visible + .nav__toggle {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--space-1);
}

.nav__toggle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.nav__icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.nav__icon span {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 1px;
  background: var(--text);
}

.nav__icon span:first-child {
  transform: translateY(-4px);
}

.nav__icon span:last-child {
  transform: translateY(4px);
}

.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg-base);
  padding: 72px var(--page-x) var(--space-6);
  flex-direction: column;
}

.nav__overlay nav {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: var(--space-1);
}

.nav__overlay .nav__item {
  color: var(--text);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-decoration: none;
  padding-block: 10px;
}

.nav__overlay .nav__item:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav__overlay .btn {
  margin-top: auto;
  width: 100%;
}

@media (max-width: 640px) {
  .nav:has(#nav-check:checked) .nav__overlay {
    display: flex;
  }

  .nav:has(#nav-check:checked) .nav__menu {
    position: fixed;
    top: 14px;
    right: var(--page-x);
    z-index: 60;
  }

  .nav:has(#nav-check:checked) .nav__icon span:first-child {
    transform: rotate(45deg);
  }

  .nav:has(#nav-check:checked) .nav__icon span:last-child {
    transform: rotate(-45deg);
  }

  html:has(#nav-check:checked) {
    overflow: hidden;
  }
}

@media (min-width: 641px) {
  .nav__links {
    display: flex;
  }

  .btn.nav__cta {
    display: inline-flex;
  }

  .nav__menu {
    display: none;
  }
}

@media (min-width: 1024px) {
  .nav__links {
    gap: 32px;
  }
}

.nav__overlay--demo {
  display: flex;
  position: relative;
  inset: auto;
  z-index: 0;
  min-height: 520px;
  border-radius: var(--r-card);
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: var(--t-body-size);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.btn--sm {
  height: 44px;
  padding: 0 22px;
  font-size: var(--t-small-size);
}

.btn--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.btn--dark:hover,
.btn--dark.is-hover {
  background: var(--bg-dark-2);
}

.btn--ice {
  background: var(--grad-ice);
  color: var(--text);
}

.btn--ice:hover,
.btn--ice.is-hover {
  filter: brightness(0.97);
}

.btn--outline {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--line-outline);
}

.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--line-dark);
}

.btn--ghost:hover,
.btn--ghost.is-hover {
  background: var(--bg-dark-2);
}

.btn:focus-visible,
.btn.is-focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--space-6);
  background: var(--bg-card);
  color: var(--text-body);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

@media (hover: hover) {
  .card:hover {
    box-shadow: 0 1px 0 var(--line);
  }
}

.card--ice {
  background: var(--bg-ice);
}

.card--on-dark {
  background: var(--bg-dark-2);
  color: var(--text-on-dark-body);
  border: 1px solid var(--line-dark);
}

.card--on-dark .card__title,
.card--on-dark .h3 {
  color: var(--text-on-dark);
}

.card--on-dark .card__text {
  color: var(--text-on-dark-body);
}

.card__title {
  color: var(--text);
}

.card__text {
  color: var(--text-body);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.stat__value {
  font-size: var(--t-stat-size);
  line-height: var(--t-stat-lh);
  font-weight: var(--t-stat-weight);
  letter-spacing: var(--t-stat-track);
  color: var(--text);
  overflow-wrap: break-word;
}

.stat__label {
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
  color: var(--text-muted);
}

.stat--on-ice .stat__label,
.section--ice .stat__label {
  color: var(--text-body);
}

.stat-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px var(--space-4);
  width: 100%;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--r-stat);
}

@media (min-width: 1024px) {
  .stat-card {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: max-content;
    max-width: 100%;
    padding: 28px 32px;
  }

  .h2 br {
    display: inline;
  }
}

.terms {
  background: var(--bg-card);
  border-radius: var(--r-card);
  overflow: hidden;
}

.terms__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding: 20px;
  border-top: 1px solid var(--line);
}

.terms__row:first-child {
  border-top: 0;
}

.terms__label {
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
  color: var(--text-muted);
}

.terms__value {
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
  color: var(--text-body);
}

.terms__value--lg {
  color: var(--text);
}

@media (min-width: 641px) {
  .terms__row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    align-items: center;
    padding: 28px 32px;
  }
}

.pie {
  display: block;
  width: 32px;
  height: 32px;
  flex: none;
}

.photo {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  background: var(--bg-ice-2);
  border-radius: var(--r-photo);
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.photo img {
  object-fit: cover;
}

.photo__label,
.photo__credit {
  position: relative;
  z-index: 1;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

.photo__caption {
  position: absolute;
  z-index: 1;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.device {
  position: relative;
  box-sizing: border-box;
  aspect-ratio: 390 / 844;
  padding: 12px;
  border-radius: 54px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    var(--bg-dark-2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(10, 10, 15, 0.35);
}

.section--dark .device,
.p-hero .device {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.6);
}

.device::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 50%;
  width: 120px;
  height: 36px;
  border-radius: 999px;
  background: var(--bg-dark);
  transform: translateX(-50%);
  pointer-events: none;
}

.device__screen {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
  background: var(--bg-dark);
}

.device__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.device__key {
  position: absolute;
  z-index: 3;
  width: 4px;
  border-radius: 2px;
  background: var(--device-btn);
}

.device__key--silent {
  top: 150px;
  left: -4px;
  height: 32px;
}

.device__key--vol {
  top: 200px;
  left: -4px;
  height: 60px;
}

.device__key--power {
  top: 180px;
  right: -4px;
  height: 90px;
}

.post {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 16px 16px 24px;
  background: var(--bg-card);
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
}

.post__media {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-ice-2);
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post__title {
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.post__stand {
  color: var(--text-body);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
}

.post--related .post__media {
  height: 200px;
}

.post--related .post__title {
  font-size: 20px;
}

.post:hover .post__title,
.post.is-hover .post__title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link {
  color: var(--c-text, var(--text));
  font-size: var(--t-body-size);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.text-link:hover,
.text-link.is-hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.doc-list {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.doc-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: var(--t-body-size);
  font-weight: 500;
  text-decoration: none;
}

.doc-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer {
  background: var(--bg-dark-2);
  padding: var(--space-8) var(--page-x) 40px;
  color: var(--text-on-dark-body);
}

.footer__grid {
  display: grid;
  gap: var(--space-6);
}

.footer__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-on-dark);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.footer .eyebrow {
  color: var(--text-on-dark-muted);
}

.footer__meta {
  max-width: 320px;
  margin-top: var(--space-3);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
  color: var(--text-on-dark-muted);
}

.footer__meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links {
  display: flex;
  flex-direction: column;
}

.footer__links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-on-dark-body);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
  font-size: var(--t-legal-size);
  line-height: var(--t-legal-lh);
  font-weight: var(--t-legal-weight);
  color: var(--text-on-dark-muted);
}

.footer__legal p {
  max-width: 1080px;
}

.footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal a:hover {
  color: var(--text-on-dark);
}

.footer__copy {
  margin-top: var(--space-5);
  font-size: var(--t-legal-size);
  line-height: var(--t-legal-lh);
  font-weight: var(--t-legal-weight);
  color: var(--text-on-dark-muted);
}

@media (min-width: 641px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--gap);
  }
}

.footer--ruled {
  border-top: 1px solid var(--line-dark);
}

.photo--bleed {
  width: 100%;
  max-width: none;
  border-radius: 0;
}

.photo--half {
  width: 100%;
  height: 560px;
  border-radius: 0 24px 24px 0;
}

.panel {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: 32px 24px 28px;
  background: var(--bg-base);
  border-radius: 24px;
}

.panel__title {
  margin-top: 20px;
  color: var(--text);
  font-size: 40px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.panel .lead {
  margin-top: var(--space-5);
}

.statement {
  max-width: 1180px;
  color: var(--text);
  font-size: 32px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.028em;
}

.statement__hi {
  font-style: normal;
  color: var(--accent);
}

.bignum {
  color: var(--bg-ice);
  font-size: 72px;
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.band {
  display: grid;
  gap: var(--space-4);
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

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

.band__title {
  color: var(--text);
  font-size: var(--t-h3-size);
  line-height: var(--t-h3-lh);
  font-weight: var(--t-h3-weight);
  letter-spacing: var(--t-h3-track);
}

.band__text {
  color: var(--text-body);
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
}

.split {
  display: grid;
  width: 100%;
}

.split__pane--ice {
  background: var(--bg-ice);
  padding: 56px var(--page-x);
}

.split__pane--dark {
  background: var(--bg-dark);
  padding: 56px var(--page-x);
  color: var(--text-on-dark);
}

.split__list {
  margin-top: var(--space-5);
}

.split__list li {
  padding: 24px 0;
  border-top: 1px solid var(--bg-ice-2);
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.split__pane--dark .split__list li {
  border-color: var(--line-dark);
  color: var(--text-on-dark);
}

.split__list li:last-child {
  border-bottom: 1px solid var(--bg-ice-2);
}

.split__pane--dark .split__list li:last-child {
  border-bottom-color: var(--line-dark);
}

@media (min-width: 641px) {
  .panel {
    padding: 48px 48px 44px;
  }

  .panel__title {
    font-size: 52px;
    line-height: 1;
  }

  .statement {
    font-size: 44px;
    line-height: 1.04;
  }

  .band {
    grid-template-columns: 160px 1fr;
    column-gap: 48px;
    row-gap: 12px;
    align-items: start;
    padding: 48px 0;
  }

  .band .bignum {
    grid-row: 1 / span 2;
    font-size: 96px;
  }

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

  .split__pane--ice {
    padding: 80px 40px 80px var(--page-x);
  }

  .split__pane--dark {
    padding: 80px var(--page-x) 80px 40px;
  }

  .split__list li {
    font-size: 24px;
  }
}

@media (min-width: 1024px) {
  .panel__title {
    font-size: 64px;
    line-height: 1;
  }

  .statement {
    font-size: 56px;
    line-height: 1.04;
  }

  .bignum {
    font-size: 120px;
  }

  .band {
    grid-template-columns: 240px 1fr 1.2fr;
    gap: 48px;
    align-items: center;
    padding: 64px 0;
  }

  .band .bignum {
    grid-row: auto;
    font-size: 120px;
  }

  .split__pane--ice {
    padding: 112px 64px 112px var(--page-x);
  }

  .split__pane--dark {
    padding: 112px var(--page-x) 112px 64px;
  }

  .split__list li {
    font-size: 28px;
  }
}

.device--hero {
  width: min(360px, 100%);
  height: auto;
  margin-bottom: -80px;
}

.device--step {
  width: min(100%, 230px);
  margin-inline: auto;
  border-radius: 44px;
}

.device--step .device__screen {
  border-radius: 32px;
}

.device--pair {
  width: min(240px, calc((100% - 28px) * 0.48));
  flex: none;
}

.device--tall {
  width: min(260px, calc((100% - 28px) * 0.52));
}

.step {
  gap: 16px;
}

.step__n {
  font-size: var(--t-eyebrow-size);
  line-height: var(--t-eyebrow-lh);
  font-weight: var(--t-eyebrow-weight);
  letter-spacing: var(--t-eyebrow-track);
  text-transform: uppercase;
  color: var(--text-body);
}

.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  color: var(--text-on-dark);
}

.offer__name {
  color: var(--text-on-dark);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.offer__blurb,
.offer__fine {
  color: var(--text-on-dark-body);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
}

.offer__blurb {
  margin-top: 12px;
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
}

.offer__figures {
  display: grid;
  gap: 16px;
}

.offer__fig {
  min-width: 0;
}

.offer__value {
  color: var(--text-on-dark);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.offer__label,
.offer__fine {
  color: var(--text-on-dark-muted);
}

.offer__label {
  margin-top: 4px;
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
}

.offer__apply {
  width: 100%;
}

.offer__apply:disabled {
  opacity: 1;
  cursor: default;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--line-dark);
  color: var(--text-on-dark-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: 2px;
  white-space: nowrap;
}

.ann {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

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

.ann b {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.ann p {
  margin-top: 4px;
  color: var(--text-body);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
}

.mini {
  padding: 20px;
  background: var(--bg-card);
  border-radius: 16px;
}

.mini__title {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.mini__text {
  margin-top: 8px;
  color: var(--text-body);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
}


.index {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.index a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fig {
  color: var(--text);
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.fig--md {
  font-size: 48px;
}

.extable {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
}

.extable__row {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-top: 1px solid var(--line);
}

.extable__row:first-child {
  border-top: 0;
}

.extable__label {
  color: var(--text-muted);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
}

.extable__value {
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.extable__total {
  background: var(--bg-ice);
}

.extable__total .extable__label {
  color: var(--text-body);
}

.extable__note {
  margin: 0;
  padding: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.flow {
  display: grid;
  gap: 0;
}

.flow__arrow {
  display: grid;
  place-items: center;
  height: 32px;
  margin: 0;
  color: var(--c-muted, var(--text-muted));
  font-size: 22px;
  line-height: 1;
}

.flow__arrow-h {
  display: none;
}

.flow__node {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 24px;
  border-radius: 20px;
}

.flow__node--dark {
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark-body);
}

.flow__node--ice {
  background: var(--bg-ice);
  color: var(--text);
}

.flow__title {
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.flow__node--dark .flow__title {
  color: var(--text-on-dark);
}

.flow__text {
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
}

.flow__node--dark .flow__text {
  color: var(--text-on-dark-body);
}

.flow__node--ice .flow__text {
  color: var(--text-body);
}

.qa {
  display: grid;
  gap: 10px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

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

.qa__q {
  color: var(--text);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

.qa__a {
  color: var(--text-body);
  font-size: var(--t-body-lg-size);
  line-height: var(--t-body-lg-lh);
}

.qa__a a {
  color: var(--text);
  font-weight: 500;
  text-underline-offset: 4px;
}

.ico3d {
  display: block;
  width: 56px;
  height: 56px;
}

.ico3d img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ico3d--n8 { transform: rotate(-8deg); }
.ico3d--p6 { transform: rotate(6deg); }
.ico3d--n6 { transform: rotate(-6deg); }
.ico3d--p5 { transform: rotate(5deg); }

.doc {
  gap: 10px;
  height: 100%;
  color: var(--text-body);
  text-decoration: none;
}

.doc__title {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.doc:hover .doc__title,
.doc.is-hover .doc__title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.doc__updated {
  margin-top: auto;
  color: var(--text-muted);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
}

.doc--dark {
  background: var(--bg-dark);
}

.doc--dark .eyebrow {
  color: var(--text-on-dark-muted);
}

.doc--dark .doc__title {
  color: var(--text-on-dark);
}

.doc--dark .card__text,
.doc--dark .doc__updated {
  color: var(--text-on-dark-body);
}

@media (min-width: 641px) {
  .fig {
    font-size: 48px;
  }

  .extable__row {
    grid-template-columns: 1fr 1fr;
    align-items: baseline;
    padding: 28px 32px;
  }

  .extable__note {
    padding: 20px 32px;
  }

  .flow {
    grid-template-columns: 1fr 48px 1fr 48px 1fr;
    align-items: stretch;
  }

  .flow__arrow {
    height: auto;
    align-self: center;
  }

  .flow__arrow-h {
    display: inline;
  }

  .flow__arrow-v {
    display: none;
  }

  .qa {
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: start;
  }

  .ico3d {
    width: 64px;
    height: 64px;
  }
}

@media (min-width: 1024px) {
  .fig {
    font-size: 64px;
  }

  .flow__node {
    padding: 32px;
  }

  .qa {
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
  }
}

.detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.detail__mail {
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.detail__mail:hover,
.detail__mail.is-hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.detail__value {
  color: var(--text-body);
  font-size: 18px;
  line-height: 1.5;
}

.detail__note {
  color: var(--text-muted);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
}

.form {
  width: 100%;
  max-width: 560px;
  gap: 20px;
  padding: 40px;
}

.form__title {
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.form .btn {
  align-self: flex-start;
  gap: 8px;
}

.form .btn:disabled {
  opacity: 1;
}

.form__fine {
  color: var(--text-muted);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
}

.form__fine a {
  color: var(--text);
  font-weight: 500;
  text-underline-offset: 4px;
}

.field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.field__label {
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.field__control {
  width: 100%;
  border: 1px solid var(--line-outline);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.field__control::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

input.field__control {
  height: 52px;
  padding: 0 16px;
}

textarea.field__control {
  min-height: 160px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.5;
}

.field__control:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  outline-offset: 2px;
}

.field__control.is-invalid {
  border-color: var(--danger);
}

.field__error {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
}

.spinner {
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid var(--bg-ice);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-ice);
  transition: opacity var(--dur) var(--ease);
}

.notice img {
  width: 22px;
  height: 22px;
  flex: none;
}

.notice__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notice__title {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.notice__text {
  color: var(--text-body);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
}

.route {
  gap: 0;
  min-width: 0;
}

.route .ico3d {
  width: 56px;
  height: 56px;
}

.route__title {
  margin-top: 20px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.route .card__text {
  margin-top: 12px;
}

.route--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark-body);
}

.route--dark .route__title {
  color: var(--text-on-dark);
}

.route--dark .card__text {
  color: var(--text-on-dark-body);
}

.note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.ico3d--n7 { transform: rotate(-7deg); }
.ico3d--n5 { transform: rotate(-5deg); }

@media (prefers-reduced-motion: reduce) {
  .spinner {
    width: auto;
    height: auto;
    border: 0;
    animation: none;
    color: var(--text-on-dark);
    font-size: 14px;
    line-height: 1;
  }

  .spinner::before {
    content: "…";
  }
}

.featured {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
}

.featured__media {
  display: block;
  height: 220px;
  background: var(--bg-ice-2);
}

.featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px;
}

.featured__title {
  color: var(--text);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.featured__stand {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.55;
}

.featured__more {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.art-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 80px var(--page-x) 56px;
  text-align: center;
}

.art-back {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.art-back:hover,
.art-back.is-hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.art-title {
  max-width: 960px;
  color: var(--text);
  font-size: 34px;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.art-stand {
  max-width: 820px;
  color: var(--text-body);
  font-size: 20px;
  line-height: 1.55;
}

.art-cover {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--bg-ice-2);
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}

.prose p,
.prose li {
  color: var(--text-body);
  font-size: 18px;
  line-height: 1.6;
}

.prose h2 {
  margin-top: 24px;
  color: var(--text);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin-top: 8px;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.prose ul,
.prose ol,
.keybox ul {
  display: flex;
  flex-direction: column;
  padding-left: 22px;
}

.prose ul,
.keybox ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 8px;
}

.prose a {
  color: var(--text);
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.keybox {
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--bg-ice);
}

.keybox__label {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.keybox ul {
  gap: 6px;
  margin-top: 12px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

.keybox li + li {
  margin-top: 0;
}

.pull {
  margin: 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tbl-wrap {
  overflow-x: auto;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
}

.tbl th {
  padding: 14px 16px;
  color: var(--text-muted);
  font-size: var(--t-eyebrow-size);
  font-weight: var(--t-eyebrow-weight);
  letter-spacing: var(--t-eyebrow-track);
  line-height: var(--t-eyebrow-lh);
  text-align: left;
  text-transform: uppercase;
}

.tbl td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.5;
}

.art-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related__title {
  color: var(--text);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (min-width: 641px) {
  .art-title {
    font-size: 48px;
  }

  .art-cover {
    height: 420px;
  }

  .prose {
    max-width: 720px;
  }

  .prose p,
  .prose li {
    font-size: 19px;
  }
}

@media (min-width: 1024px) {
  .featured {
    grid-template-columns: 1.3fr 0.7fr;
  }

  .featured__media {
    height: 480px;
  }

  .art-title {
    font-size: 60px;
  }

  .art-cover {
    height: 620px;
    border-radius: 24px;
  }

  .prose {
    max-width: 900px;
  }

  .prose p,
  .prose li {
    font-size: 20px;
    line-height: 1.65;
  }
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jump a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-outline);
  border-radius: var(--r-pill);
  background: var(--bg-card);
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.jump a:hover,
.jump a.is-hover {
  background: var(--bg-ice);
}

.jump a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.faq-group {
  display: grid;
  gap: 32px;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}

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

.faq-group__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  gap: 12px;
}

.faq-group h2 {
  color: var(--text);
  font-size: 36px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.faq-group__sub {
  color: var(--text-muted);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
}

.faq-q {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.faq-q:first-child {
  padding-top: 0;
  border-top: 0;
}

.faq-q:not([open]) > :not(summary) {
  display: none;
}

.faq-q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

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

.faq-q summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.faq-q__q {
  color: var(--text);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.faq-q__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-outline);
  border-radius: 50%;
  color: var(--text-body);
  font-size: 18px;
  line-height: 1;
}

.faq-q__mark::before {
  content: "+";
}

.faq-q[open] .faq-q__mark::before {
  content: "\2013";
}

.faq-q__a {
  max-width: 720px;
  padding-top: 12px;
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.6;
}

.faq-q__a a {
  color: var(--text);
  font-weight: 500;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .jump {
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
  }

  .faq-q__q {
    font-size: 18px;
  }

  .faq-q__a {
    font-size: 16px;
  }
}

@media (min-width: 641px) {
  .faq-group {
    grid-template-columns: 220px 1fr;
    gap: 64px;
  }

  .faq-group__title {
    position: sticky;
    top: 120px;
  }
}

@media (min-width: 1024px) {
  .faq-group {
    grid-template-columns: 320px 1fr;
  }
}

.legal-head {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 72px var(--page-x) 48px;
  border-bottom: 1px solid var(--line);
}

.legal-head__grid {
  display: grid;
  gap: var(--space-5);
  align-items: end;
}

.legal-title {
  color: var(--text);
  font-size: 34px;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.legal-meta {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
}

.legal-summary {
  color: var(--text-body);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
}

.legal-printurl {
  display: none;
}

.switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.switch a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-outline);
  border-radius: var(--r-pill);
  background: var(--bg-card);
  color: var(--text-body);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.switch a:hover,
.switch a.is-hover {
  background: var(--bg-ice);
}

.switch a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.switch a[aria-current="page"] {
  border-color: var(--bg-dark);
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.legal-body {
  display: grid;
  gap: 32px;
  padding: 64px var(--page-x) 112px;
}

.legal-toc details:not([open]) > :not(summary) {
  display: none;
}

.legal-toc [hidden] {
  display: none !important;
}

.legal-toc summary {
  cursor: pointer;
  list-style: none;
}

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

.legal-toc summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.legal-toc a {
  display: flex;
  gap: 8px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}

.legal-toc__num {
  flex: none;
  min-width: 22px;
  color: var(--text-muted);
  font-weight: 500;
}

.legal-toc a.is-current .legal-toc__title {
  color: var(--text);
  font-weight: 500;
}

.legal-toc__rule {
  height: 1px;
  margin: 16px 0;
  border: 0;
  background: var(--line);
}

.legal-toc__pdf {
  color: var(--text);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
  text-underline-offset: 3px;
}

.legal-doc {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  min-width: 0;
}

.legal-doc > p:not(.callout),
.legal-doc li,
.legal-doc dd {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
}

.legal-doc h2 {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  scroll-margin-top: 120px;
}

.legal-num {
  flex: none;
  color: var(--text-muted);
  font-weight: 500;
}

.legal-doc h3 {
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.legal-doc ul,
.legal-doc ol,
.legal-doc dl,
.legal-doc dd,
.legal-doc li {
  margin: 0;
}

.legal-doc ul,
.legal-doc ol {
  display: flex;
  flex-direction: column;
  padding-left: 24px;
}

.legal-doc ul {
  list-style: disc;
}

.legal-doc ol {
  list-style: decimal;
}

.legal-doc li + li {
  margin-top: 8px;
}

.legal-doc a {
  color: var(--text);
  font-weight: 500;
  text-underline-offset: 3px;
}

.legal-doc dt {
  margin-top: 12px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.legal-doc h2.is-target,
.legal-doc h2:target {
  margin-top: 20px;
  margin-right: -12px;
  margin-bottom: -8px;
  margin-left: -12px;
  padding: 8px 12px;
  animation: legal-flash 1.5s var(--ease) forwards;
}

.callout {
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--bg-ice);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.callout strong {
  font-weight: 600;
}

.legal-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
}

.legal-next {
  color: var(--text);
  font-weight: 500;
  text-align: left;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .switch {
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
  }
}

@media (min-width: 641px) {
  .legal-title {
    font-size: 44px;
  }

  .legal-head__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .legal-body {
    grid-template-columns: 220px 1fr;
    gap: 48px;
  }

  .legal-toc {
    position: sticky;
    top: 120px;
    align-self: start;
  }

  .legal-toc summary {
    pointer-events: none;
    cursor: default;
  }

  .legal-toc details:not([open]) > :not(summary),
  .legal-toc details[open] > :not(summary) {
    display: block;
  }

  .legal-doc > p:not(.callout),
  .legal-doc li,
  .legal-doc dd {
    font-size: 17px;
    line-height: 1.65;
  }

  .legal-foot {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  .legal-next {
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .legal-title {
    font-size: 56px;
  }

  .legal-body {
    grid-template-columns: 300px 1fr;
    gap: 80px;
  }
}

@keyframes legal-flash {
  from { background: var(--bg-ice); }
  to { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-doc h2.is-target,
  .legal-doc h2:target {
    animation: legal-flash-hold 1.5s linear forwards;
  }
}

@keyframes legal-flash-hold {
  0%, 99% { background: var(--bg-ice); }
  100% { background: transparent; }
}
