/* KAIMEI — unified brand and interface system (2026-08) */

:root {
  --ui-content: 760px;
  --ui-wide: 1180px;
  --ui-reading: 680px;
  --ui-header-height: 74px;
  --ui-space-1: 8px;
  --ui-space-2: 16px;
  --ui-space-3: 24px;
  --ui-space-4: 32px;
  --ui-space-5: 48px;
  --ui-space-6: 72px;
  --ui-space-7: 104px;
}

html {
  scroll-padding-top: calc(var(--ui-header-height) + 24px);
}

body {
  min-width: 320px;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--color-accent);
  color: var(--color-paper);
}

img {
  max-width: 100%;
}

a,
button,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a,
button {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.container {
  width: min(100%, var(--ui-content));
}

.container-wide {
  width: min(100%, var(--ui-wide));
}

.section-kicker,
.product-kicker {
  font-weight: 600;
  line-height: 1.4;
}

.section-title {
  text-wrap: balance;
}

.lead,
.section-intro,
.hero-lead {
  text-wrap: pretty;
}

/* ---- Unified header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--ui-header-height);
  padding: 0;
  background: var(--color-bg);
  border-top: 3px solid var(--color-accent);
  border-bottom: var(--hairline);
}

.home-page .site-header,
.preview-body .site-header,
.order-page .site-header {
  min-height: var(--ui-header-height);
  padding: 0;
}

.site-header .container {
  width: min(100%, var(--ui-wide));
  min-height: calc(var(--ui-header-height) - 3px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .28em;
  text-indent: 0;
}

.brand .latin {
  margin-left: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.header-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
  position: relative;
}

.header-nav a:not(.header-primary)::after {
  content: '';
  position: absolute;
  right: 100%;
  bottom: 5px;
  left: 0;
  border-bottom: 1px solid var(--color-accent);
  transition: right .18s ease;
}

.header-nav a:not(.header-primary):hover::after {
  right: 0;
}

.header-nav .header-primary {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.header-nav .header-primary:hover {
  background: var(--color-accent);
  color: var(--color-paper);
}

/* ---- Unified buttons and controls ---- */
.btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .15em;
  text-indent: .15em;
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-paper);
}

.btn-solid,
#submit-btn {
  background: var(--color-accent);
  color: var(--color-paper);
}

.btn-solid:hover,
#submit-btn:hover {
  background: var(--color-text);
  border-color: var(--color-text);
}

.btn[disabled],
#submit-btn[disabled] {
  background: var(--color-soft);
  border-color: var(--color-line);
  color: var(--color-sub);
}

.text-link,
.subtle-link {
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.text-link:hover,
.subtle-link:hover {
  color: var(--color-accent);
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
select {
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  line-height: 1.4;
}

input:hover,
select:hover {
  border-color: var(--color-sub);
}

input:focus,
select:focus {
  border-color: var(--color-accent);
  background: var(--color-paper);
}

.form-field > label,
.form-field > .required {
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.7;
}

.required::after {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  vertical-align: 1px;
}

.radio-row {
  gap: 12px;
  flex-wrap: wrap;
}

.radio-row label,
.check-label {
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
}

.radio-row label:hover,
.check-label:hover {
  border-color: var(--color-accent);
}

input[type="radio"],
input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.field-note {
  line-height: 1.75;
}

.field-error.show {
  border-left: 2px solid var(--color-accent);
  padding-left: 10px;
}

.form-error-top.show {
  background: var(--color-paper);
}

/* ---- Unified footer ---- */
.site-footer {
  padding: 68px 0 60px;
  border-top: 0;
  background: var(--color-text);
  color: var(--color-paper);
}

.home-page .site-footer,
.preview-body .site-footer,
.order-page .site-footer,
.product-page .site-footer,
.thanks-page .site-footer,
.legal-page .site-footer {
  background: var(--color-text);
  color: var(--color-paper);
}

.site-footer .container {
  width: min(100%, var(--ui-wide));
}

.site-footer .container::before {
  content: '開命  KAIMEI';
  display: block;
  margin-bottom: 28px;
  color: var(--color-paper);
  font-family: var(--font-ja);
  font-size: 19px;
  letter-spacing: .24em;
}

.site-footer .disclaimer-line {
  color: var(--color-sub);
  font-size: 12px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 10px 28px;
  flex-wrap: wrap;
  margin: 0 auto 28px;
}

.footer-nav a {
  margin: 0;
  color: var(--color-paper);
  font-size: 12px;
  text-underline-offset: 5px;
}

.footer-nav a:hover {
  color: var(--color-sub);
}

.copyright {
  color: var(--color-sub);
  font-size: 11px;
  letter-spacing: .08em;
}

/* ---- Home refinements ---- */
.home-page .home-hero {
  min-height: calc(100svh - var(--ui-header-height));
}

.home-page .hero-content h1 {
  max-width: 700px;
  text-wrap: balance;
}

.home-page .hero-chart,
.home-page .step-grid article,
.home-page .sample-copy,
.home-page .reading-item,
.home-page .price-card {
  transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
}

.home-page .hero-chart:hover,
.home-page .step-grid article:hover,
.home-page .sample-copy:hover,
.home-page .reading-item:hover,
.home-page .price-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.home-page .sample-item:focus-visible {
  outline-offset: 5px;
}

.home-page .reading-item .text-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.home-page .faq-item dt,
.home-page .faq-item dd {
  line-height: 1.9;
}

/* ---- Preview and main order refinements ---- */
.preview-body .preview-form,
.preview-body .result-block,
.preview-body .paid-bridge,
.order-page .plan-display,
.order-page .prefill-notice,
.order-page .order-form-section {
  background: var(--color-paper);
}

.preview-body .preview-form,
.order-page .order-form-section {
  border-top-width: 2px;
}

.preview-body .preview-form-heading,
.order-page .order-section-heading {
  align-items: flex-start;
}

.preview-body .privacy-banner {
  background: var(--color-soft);
}

.preview-body .result-summary > div,
.preview-body .result-block {
  min-width: 0;
}

.preview-body .paid-bridge-action .btn {
  width: 100%;
}

.order-page .order-container {
  width: min(100%, 780px);
}

.order-page .order-progress {
  position: relative;
}

.order-page .order-progress li {
  min-height: 64px;
  display: grid;
  place-content: center;
}

.order-page .plan-display {
  position: relative;
  overflow: hidden;
}

.order-page .plan-display::before {
  content: '鑑';
  position: absolute;
  right: -8px;
  bottom: -30px;
  color: var(--color-soft);
  font-size: 130px;
  line-height: 1;
  pointer-events: none;
}

.order-page .plan-display > * {
  position: relative;
}

.order-page .agreement-field .check-label {
  align-items: flex-start;
}

/* ---- Product pages ---- */
.product-page {
  background: var(--color-bg);
}

.product-page .product-hero {
  min-height: 560px;
  display: grid;
  align-items: center;
  padding: 92px 0 102px;
  position: relative;
  overflow: hidden;
  background: var(--color-paper);
}

.product-page .product-hero::before {
  position: absolute;
  right: max(3vw, 20px);
  top: 50%;
  color: var(--color-soft);
  font-size: clamp(250px, 34vw, 510px);
  font-weight: 500;
  line-height: 1;
  transform: translateY(-53%);
  pointer-events: none;
}

.product-blood .product-hero::before { content: '血'; }
.product-zodiac .product-hero::before { content: '星'; }
.product-omikuji .product-hero::before { content: '籤'; }
.product-ziwei .product-hero::before { content: '紫'; }

.product-page .product-hero .container {
  width: min(100%, 880px);
  position: relative;
  text-align: left;
}

.product-page .product-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--color-accent);
  font-size: 12px;
  letter-spacing: .25em;
}

.product-page .product-kicker::before {
  content: '';
  width: 34px;
  border-top: 1px solid var(--color-accent);
}

.product-page .product-hero h1 {
  max-width: 620px;
  margin: 0 0 28px;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.35;
  letter-spacing: .1em;
  text-wrap: balance;
}

.product-page .product-hero .lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--color-ink-soft);
  font-size: 16px;
  line-height: 2;
  text-align: left;
}

.product-page .product-price {
  width: fit-content;
  margin: 36px 0 12px;
  padding: 6px 0 2px;
  border-bottom: 1px solid var(--color-accent);
  font-size: 46px;
  line-height: 1.2;
}

.product-page .product-hero .note {
  color: var(--color-sub);
  font-size: 12px;
}

.product-page #order {
  padding: 104px 0 120px;
  background: var(--color-soft);
}

.product-page .product-assurance {
  padding: 0;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  background: var(--color-bg);
}

.product-page .product-assurance .container {
  width: min(100%, 980px);
}

.product-page .product-assurance ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-page .product-assurance li {
  min-width: 0;
  padding: 30px 28px;
  text-align: center;
}

.product-page .product-assurance li + li {
  border-left: var(--hairline);
}

.product-page .product-assurance strong,
.product-page .product-assurance span {
  display: block;
}

.product-page .product-assurance strong {
  margin-bottom: 6px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
}

.product-page .product-assurance span {
  color: var(--color-ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.product-page #order > .container {
  width: min(100%, 820px);
}

.product-page #order > .container > .section-title {
  margin-bottom: 42px;
  font-size: 29px;
  letter-spacing: .18em;
}

.product-page #order > .container > .section-title::before {
  content: 'ORDER YOUR READING';
  display: block;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
}

.product-page .plan-display {
  margin-bottom: 24px;
  padding: 34px 36px;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-paper);
  text-align: left;
}

.product-page .plan-display .plan-name {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 500;
}

.product-page .plan-display .plan-price,
.product-page .plan-display .plan-price small,
.product-page .plan-display .field-note {
  color: var(--color-paper);
}

.product-page .plan-display .plan-price {
  margin-bottom: 7px;
  font-size: 36px;
}

.product-page .plan-display .field-note {
  opacity: .82;
}

.product-page #reading-order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  padding: 48px 48px 52px;
  border: var(--hairline);
  border-top: 2px solid var(--color-accent);
  background: var(--color-paper);
}

.product-page #reading-order-form > * {
  grid-column: 1 / -1;
  min-width: 0;
}

.product-page #reading-order-form > .form-field:has(#email),
.product-page #reading-order-form > .form-field:has(#email2) {
  grid-column: auto;
}

.product-page #reading-order-form .form-field {
  margin-bottom: 32px;
}

.product-page #reading-order-form .radio-row label {
  flex: 1 1 150px;
}

.product-page #payment-method-note {
  margin: 4px 0 10px;
  padding: 18px 20px;
  border-left: 2px solid var(--color-accent);
  background: var(--color-soft);
  color: var(--color-ink-soft);
  text-align: left;
}

.product-page #reading-order-form .cta-row {
  margin-top: 24px;
}

.product-page #submit-btn {
  width: 100%;
}

/* ---- Completion page ---- */
.thanks-page main {
  background: var(--color-soft);
}

.thanks-page .thanks-shell {
  padding: 88px 0 112px;
}

.thanks-page .thanks-container {
  width: min(100%, 780px);
}

.thanks-page .section-kicker {
  margin-bottom: 14px;
  text-align: center;
}

.thanks-page .section-title {
  margin-bottom: 26px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.5;
  letter-spacing: .12em;
}

.thanks-page #page-lead {
  max-width: 620px;
  margin: 0 auto 42px;
  color: var(--color-ink-soft);
  font-size: 14px;
}

.thanks-page .completion-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px;
  padding: 0;
  border: var(--hairline);
  background: var(--color-paper);
  list-style: none;
}

.thanks-page .completion-flow li {
  min-width: 0;
  padding: 16px 12px;
  color: var(--color-sub);
  text-align: center;
}

.thanks-page .completion-flow li + li {
  border-left: var(--hairline);
}

.thanks-page .completion-flow li.is-current {
  background: var(--color-soft);
  color: var(--color-accent);
}

.thanks-page .completion-flow span,
.thanks-page .completion-flow strong {
  display: block;
}

.thanks-page .completion-flow span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
}

.thanks-page .completion-flow strong {
  font-size: 12px;
  font-weight: 500;
}

.thanks-page .order-id-box {
  margin: 0 0 24px;
  padding: 30px 24px;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-paper);
}

.thanks-page .order-id-box .note,
.thanks-page .order-id-box .order-id {
  color: var(--color-paper);
}

.thanks-page .order-id-box .order-id {
  margin-bottom: 0;
}

.thanks-page #bank-section,
.thanks-page #card-section {
  padding: 42px 44px;
  border: var(--hairline);
  border-top: 2px solid var(--color-accent);
  background: var(--color-paper);
}

.thanks-page .payment-heading {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .12em;
}

.thanks-page .bank-info {
  margin: 24px 0 30px;
  padding: 0;
  border: 0;
}

.thanks-page .bank-info dl {
  row-gap: 0;
  border-top: var(--hairline);
}

.thanks-page .bank-info dt,
.thanks-page .bank-info dd {
  margin: 0;
  padding: 13px 12px;
  border-bottom: var(--hairline);
}

.thanks-page .bank-info dt {
  background: var(--color-soft);
}

.thanks-page #bank-section > .lead,
.thanks-page #card-section > .lead {
  margin-top: 28px;
  line-height: 1.9;
}

.thanks-page .cta-row {
  margin-top: 34px;
}

/* ---- Legal pages ---- */
.legal-page main {
  background: var(--color-soft);
}

.legal-page main > section {
  padding: 88px 0 112px;
}

.legal-page .legal-body {
  width: min(100%, 900px);
  padding: 64px 72px 76px;
  border: var(--hairline);
  border-top: 3px solid var(--color-accent);
  background: var(--color-paper);
}

.legal-page .legal-body > .section-title {
  margin-bottom: 60px !important;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.5;
  letter-spacing: .12em;
  text-align: left;
}

.legal-page .legal-body > .section-title::before {
  content: 'POLICY & INFORMATION';
  display: block;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
}

.legal-page .legal-body > .section-title::after {
  width: 56px;
  margin: 24px 0 0;
  border-color: var(--color-accent);
}

.legal-page .legal-body h2:not(.section-title) {
  margin-top: 52px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-accent);
  font-size: 19px;
  line-height: 1.7;
  letter-spacing: .1em;
}

.legal-page .legal-body p,
.legal-page .legal-body li,
.legal-page .legal-body td,
.legal-page .legal-body th {
  line-height: 1.9;
}

.legal-page .legal-body ul,
.legal-page .legal-body ol {
  display: grid;
  gap: 10px;
}

.legal-page .legal-body li::marker {
  color: var(--color-accent);
}

.legal-page .legal-body table {
  margin-top: 32px;
  border-top: 2px solid var(--color-accent);
}

.legal-page .legal-body th,
.legal-page .legal-body td {
  padding: 16px 18px;
  border-color: var(--color-line);
}

.legal-page .legal-body th {
  background: var(--color-soft);
  color: var(--color-text);
  font-weight: 500;
}

/* ---- Tablet ---- */
@media (max-width: 900px) {
  :root { --ui-space-7: 88px; }

  .site-header .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .home-page .site-header,
  .preview-body .site-header,
  .order-page .site-header {
    padding: 0;
  }

  .header-nav { gap: 18px; }

  .header-nav a { font-size: 12px; }

  .home-page .hero-chart:hover,
  .home-page .step-grid article:hover,
  .home-page .sample-copy:hover,
  .home-page .reading-item:hover,
  .home-page .price-card:hover {
    transform: none;
  }

  .product-page .product-hero {
    min-height: 500px;
  }

  .legal-page .legal-body {
    padding: 56px 48px 68px;
  }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  :root {
    --ui-header-height: 66px;
  }

  .container,
  .container-wide {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-header .container {
    min-height: calc(var(--ui-header-height) - 3px);
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand {
    font-size: 19px;
    letter-spacing: .2em;
  }

  .brand .latin {
    display: none;
  }

  .header-nav {
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .header-nav::-webkit-scrollbar { display: none; }

  .header-nav a {
    min-height: 38px;
    font-size: 11px;
  }

  .header-nav .header-primary {
    min-height: 38px;
    padding: 0 12px;
  }

  .home-page .header-nav a:not(.header-primary),
  .preview-body .header-nav a:not(.header-primary) {
    display: none;
  }

  .btn {
    min-height: 54px;
    padding-right: 22px;
    padding-left: 22px;
    font-size: 14px;
  }

  .site-footer {
    padding: 54px 0 48px;
  }

  .site-footer .container::before {
    margin-bottom: 22px;
    font-size: 17px;
  }

  .site-footer .disclaimer-line {
    max-width: 270px;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.8;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 8px;
  }

  .footer-nav a {
    display: block;
    padding: 3px 0;
    font-size: 11px;
  }

  .home-page .home-hero {
    min-height: auto;
  }

  .home-page .hero-content h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .home-page .hero-actions {
    align-items: stretch;
  }

  .preview-body .preview-form,
  .preview-body .result-block,
  .order-page .order-form-section {
    border-right: 0;
    border-left: 0;
  }

  .order-page .order-progress li {
    min-height: 58px;
  }

  .product-page .site-header .header-nav a:first-child {
    display: none;
  }

  .product-page .product-hero {
    min-height: 480px;
    padding: 72px 0 82px;
  }

  .product-page .product-hero::before {
    right: -28px;
    top: 46%;
    font-size: 270px;
  }

  .product-page .product-hero h1 {
    max-width: 300px;
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.45;
    letter-spacing: .07em;
  }

  .product-page .product-hero .lead {
    max-width: 320px;
    font-size: 14px;
    line-height: 1.95;
  }

  .product-page .product-hero br {
    display: none;
  }

  .product-page .product-price {
    font-size: 39px;
  }

  .product-page #order {
    padding: 72px 0 88px;
  }

  .product-page .product-assurance ul {
    grid-template-columns: 1fr;
  }

  .product-page .product-assurance li {
    padding: 22px 18px;
  }

  .product-page .product-assurance li + li {
    border-top: var(--hairline);
    border-left: 0;
  }

  .product-page #order > .container {
    padding: 0 14px;
  }

  .product-page #order > .container > .section-title {
    font-size: 25px;
  }

  .product-page .plan-display {
    padding: 28px 24px;
  }

  .product-page #reading-order-form {
    display: block;
    padding: 34px 22px 40px;
  }

  .product-page #reading-order-form .form-field {
    margin-bottom: 30px;
  }

  .product-page #payment-method-note {
    margin-top: 0;
  }

  .thanks-page .thanks-shell {
    padding: 66px 0 82px;
  }

  .thanks-page .thanks-container {
    padding: 0 14px;
  }

  .thanks-page .section-title {
    font-size: 30px;
    letter-spacing: .08em;
  }

  .thanks-page .completion-flow li {
    padding: 13px 5px;
  }

  .thanks-page .completion-flow strong {
    font-size: 10px;
  }

  .thanks-page #bank-section,
  .thanks-page #card-section {
    padding: 32px 22px;
  }

  .thanks-page .bank-info dl {
    display: block;
  }

  .thanks-page .bank-info dt {
    margin-top: 0;
    padding-bottom: 5px;
    border-bottom: 0;
  }

  .thanks-page .bank-info dd {
    padding-top: 3px;
    overflow-wrap: anywhere;
  }

  .thanks-page .order-id-box .order-id {
    font-size: clamp(20px, 6vw, 27px);
    letter-spacing: .08em;
    overflow-wrap: anywhere;
  }

  .legal-page main > section {
    padding: 62px 0 80px;
  }

  .legal-page .legal-body {
    padding: 42px 22px 54px;
    border-right: 0;
    border-left: 0;
  }

  .legal-page .legal-body > .section-title {
    margin-bottom: 48px !important;
    font-size: 27px;
    letter-spacing: .07em;
  }

  .legal-page .legal-body h2:not(.section-title) {
    margin-top: 42px;
    font-size: 17px;
  }

  .legal-page .legal-body ul,
  .legal-page .legal-body ol {
    padding-left: 1.35em;
  }

  .legal-page .legal-body table,
  .legal-page .legal-body tbody,
  .legal-page .legal-body tr,
  .legal-page .legal-body th,
  .legal-page .legal-body td {
    display: block;
    width: 100%;
  }

  .legal-page .legal-body tr {
    border-right: var(--hairline);
    border-left: var(--hairline);
  }

  .legal-page .legal-body th,
  .legal-page .legal-body td {
    border-right: 0;
    border-left: 0;
  }

  .legal-page .legal-body th {
    padding-bottom: 8px;
    border-bottom: 0;
  }

  .legal-page .legal-body td {
    padding-top: 8px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .site-header .container { gap: 10px; }
  .brand { font-size: 18px; }
  .header-nav { gap: 8px; }
  .header-nav a { font-size: 10px; }
  .header-nav .header-primary { padding: 0 9px; }
  .footer-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-row,
  .header-nav { display: none !important; }
  body,
  main,
  section,
  .legal-page main,
  .thanks-page main { background: #fff !important; }
  .legal-page .legal-body,
  .thanks-page #bank-section { border: 0; padding: 0; }
}
