/*
  Yon Studio -- site styles.

  Direction: bold, modern, desktop-first. Dark "ink" sections alternate with
  warm paper ones, big Bricolage Grotesque headlines, one vivid vermilion
  accent (a nod to the hinomaru), bento-grid cards and a wide booking panel.
  Everything collapses to a single column on phones.

  Re-theme by editing the variables right below.
*/

:root {
  /* All-light theme. "ink" is the STRONG fill for selected / emphasised
     things (picked day and time, main buttons, booked lessons in admin):
     teal with dark text. The big feature areas (header, hero, price box,
     footer...) are light surfaces: see "Light surfaces" below. */
  --ink: #59afaf;
  --ink-2: #4c9f9f;
  --on-ink: #231f20;
  --on-ink-soft: #1f3d3d;
  --line-dark: #4c9f9f;

  --paper: #f7fbfb;       /* main background: very pale blue-green */
  --paper-2: #e9f2eb;     /* light sections: very pale sage */
  --beige: #fdedd5;       /* warm cream/peach: tags, soft highlights */
  --sage: #7fa18f;        /* muted green: small status touches */
  --taupe: #a99084;       /* warm grey-brown: decorative only (too light for text) */
  --white: #ffffff;
  --text: #231f20;        /* almost black */
  --text-soft: #4a4345;
  --text-faint: #6e6461;
  --line: #e1dfd2;        /* soft grey-beige */

  --accent: #59afaf;      /* muted teal: buttons, highlights, text on dark. Use DARK text on it. */
  --accent-hover: #4c9f9f;
  --accent-ink: #2e7a7a;  /* teal text on light backgrounds (darker so small text stays readable) */
  --accent-soft: #dcefef;

  --display: "Bricolage Grotesque", "Noto Sans JP", system-ui, sans-serif;
  --body: "Inter", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --jp: "Noto Sans JP", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --container: 1440px;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
}

/* ---------- Language toggle (see site.js) ---------- */

:root[data-lang="ja"] body [lang="en"],
:root[data-lang="en"] body [lang="ja"] {
  display: none;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px; /* keeps anchored sections clear of the sticky header */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:root[data-lang="ja"] body {
  line-height: 1.8;
}

h1,
h2,
h3 {
  margin: 0 0 0.45em;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 6.4vw, 6.4rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
}

h3 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

/* Japanese: no negative tracking, a bit more leading, and wrap between
   phrases instead of mid-word (e.g. 話 / せる). */
:root[data-lang="ja"] :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.25;
  word-break: auto-phrase;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-ink);
}

img {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.muted {
  color: var(--text-soft);
}

.hidden {
  display: none !important;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1em 1.8em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .arrow {
  transition: transform 0.2s;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* Dark text on the accent: high contrast, and it reads as "the" action. */
.btn-accent {
  background: var(--accent);
  color: var(--text);
}

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

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

.btn-dark:hover {
  background: var(--ink-2);
}

.btn-outline-light {
  border-color: rgb(35 31 32 / 0.22);
  color: var(--on-ink);
}

.btn-outline-light:hover {
  border-color: rgb(35 31 32 / 0.5);
  background: rgb(35 31 32 / 0.06);
}

.btn-outline {
  border-color: var(--line);
  background: var(--white);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
}

.btn-lg {
  padding: 1.15em 2.1em;
  font-size: 1.06rem;
}

.btn-small {
  padding: 0.7em 1.3em;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(247 251 251 / 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  color: var(--on-ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-sub {
  color: var(--on-ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
}

.site-nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgb(35 31 32 / 0.08);
  border-radius: 999px;
  background: rgb(35 31 32 / 0.04);
}

.site-nav a {
  padding: 0.5em 1.1em;
  border-radius: 999px;
  color: var(--on-ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
  background: rgb(35 31 32 / 0.08);
  color: var(--on-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgb(35 31 32 / 0.12);
  border-radius: 999px;
}

.lang-toggle button {
  padding: 0.4em 0.9em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-ink-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-ink);
}

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 68px;
    gap: 12px;
  }

  .brand-sub,
  .header-actions .btn {
    display: none;
  }
}

/* ---------- Shared section bits ---------- */

.section {
  padding-block: clamp(80px, 10vw, 144px);
}

.section-white {
  background: var(--paper-2);
}

/* Light surfaces: the areas that used to be dark. Inside them, the "on-ink"
   text colours switch back to normal dark text, so every rule written for
   the old dark look (soft text, divider lines...) still reads correctly. */
.site-header,
.hero,
.section-dark,
.tile-dark,
.booking-aside,
.review-feature,
.site-footer {
  --on-ink: var(--text);
  --on-ink-soft: var(--text-soft);
  --line-dark: var(--line);
}

/* Big headline highlights on light backgrounds: deeper teal so they read. */
.hero h1 em,
.footer-cta h2 em {
  color: var(--accent-ink) !important;
}

.section-dark {
  background: var(--beige);
  color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
}

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

/* Heading on the left, intro paragraph on the right -- uses desktop width. */
.split-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 48px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.split-head h2 {
  margin: 0;
}

.split-head p {
  max-width: 32em;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.15rem;
}

.section-dark .split-head p {
  color: var(--on-ink-soft);
}

@media (max-width: 900px) {
  .split-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Boxes standing in for real photos -- swap each for an <img>. */
.photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgb(89 175 175 / 0.18), transparent 55%),
    linear-gradient(160deg, #ebe7de, #d9d3c6);
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 96px) clamp(72px, 8vw, 120px);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  color: var(--text);
}

/* Faint grid lines, fading out towards the edges. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(35 31 32 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(35 31 32 / 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 15%, transparent 70%);
}

/* Warm glow behind the photo. */
.hero::after {
  content: "";
  position: absolute;
  top: -320px;
  right: -260px;
  z-index: -1;
  width: 960px;
  height: 960px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(89 175 175 / 0.32), transparent 62%);
}

/* Giant outlined 日本語 behind everything. */
.hero-watermark {
  position: absolute;
  bottom: -0.22em;
  left: -0.04em;
  z-index: -1;
  color: transparent;
  font-family: var(--jp);
  font-size: clamp(10rem, 24vw, 24rem);
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 1px rgb(35 31 32 / 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(40px, 5vw, 96px);
  min-height: min(76vh, 760px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 0.45em 1.05em 0.45em 0.85em;
  border: 1px solid rgb(35 31 32 / 0.14);
  border-radius: 999px;
  background: rgb(35 31 32 / 0.05);
  font-size: 0.9rem;
  font-weight: 500;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fa18f;
  box-shadow: 0 0 0 4px rgb(127 161 143 / 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgb(127 161 143 / 0.06);
  }
}

/* Japanese glyphs are full-width, so the same size would wrap to 4 lines. */
:root[data-lang="ja"] .hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero .lead {
  max-width: 31em;
  margin-bottom: 40px;
  color: var(--on-ink-soft);
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin: 48px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid rgb(35 31 32 / 0.1);
  color: var(--on-ink-soft);
  list-style: none;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-meta svg {
  flex: none;
  color: var(--accent);
}

.hero-media {
  position: relative;
  justify-self: end;
  width: min(100%, 540px);
}

.hero-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: 0 50px 100px -40px rgb(35 31 32 / 0.22);
}

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

.hero-photo .photo-placeholder {
  background:
    radial-gradient(circle at 70% 20%, rgb(89 175 175 / 0.35), transparent 55%),
    linear-gradient(160deg, #2b303c, #191c24);
  color: var(--on-ink-soft);
}

/* White "UI" cards floating over the photo. */
.float-card {
  position: absolute;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 24px 48px -16px rgb(35 31 32 / 0.16);
  color: var(--text);
}

.float-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-card {
  bottom: 72px;
  left: -56px;
  min-width: 250px;
}

.next-card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.next-card a {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.price-float {
  top: 44px;
  right: -36px;
  text-align: center;
}

.price-float strong {
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.price-float span:last-child {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.hello-bubble {
  position: absolute;
  right: 36px;
  bottom: -20px;
  padding: 0.65em 1.2em;
  border-radius: 20px 20px 4px 20px;
  background: var(--accent);
  color: var(--text);
  font-family: var(--jp);
  font-weight: 800;
  transform: rotate(-3deg);
}

@media (max-width: 1240px) {
  .next-card {
    left: -20px;
  }

  .price-float {
    right: -16px;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-media {
    justify-self: center;
    width: min(100%, 460px);
  }

  .next-card {
    left: 12px;
    bottom: 40px;
  }

  .price-float {
    top: 16px;
    right: 12px;
  }

  .hello-bubble {
    right: 16px;
  }
}


/* ---------- Bento grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(230px, auto);
  grid-template-areas:
    "about about s50    s11"
    "about about levels levels"
    "lang  tz    levels levels";
  gap: 20px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}

.tile p {
  color: var(--text-soft);
}

.tile p:last-child {
  margin-bottom: 0;
}

.tile-dark {
  border-color: var(--paper-2);
  background: var(--paper-2);
  color: var(--text);
}

.tile-dark p {
  color: var(--on-ink-soft);
}

.tile-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text);
}

.tile-accent p {
  color: rgb(35 31 32 / 0.75);
}

.tile-label {
  margin-bottom: 8px;
  color: var(--text-faint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tile-dark .tile-label {
  color: var(--on-ink-soft);
}

.tile-about {
  grid-area: about;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 16px 32px 16px 16px;
}

.tile-about .about-photo {
  overflow: hidden;
  min-height: 380px;
  border-radius: 20px;
}

.tile-about .about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-about .about-text {
  display: flex;
  flex-direction: column;
  padding-block: 20px;
}

.tile-about h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.chip {
  padding: 0.4em 0.95em;
  border-radius: 999px;
  background: var(--beige);
  font-size: 0.85rem;
  font-weight: 600;
}

.tile-s50 {
  grid-area: s50;
}

.tile-s11 {
  grid-area: s11;
}

.big-num {
  margin-bottom: auto;
  font-family: var(--display);
  font-size: clamp(4rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.big-num small {
  margin-left: 4px;
  font-size: 0.32em;
  font-weight: 600;
  letter-spacing: 0;
}

.tile-levels {
  grid-area: levels;
}

.tile-levels h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

/* N5 -> N1 bars, rising like a staircase. */
.ladder {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 200px;
  margin-top: auto;
}

.ladder span {
  display: flex;
  flex: 1;
  justify-content: center;
  padding-top: 12px;
  border-radius: 14px 14px 6px 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 800;
}

.ladder span:nth-child(1) { height: 30%; }
.ladder span:nth-child(2) { height: 46%; }
.ladder span:nth-child(3) { height: 62%; }
.ladder span:nth-child(4) { height: 80%; }

.ladder span:nth-child(5) {
  height: 100%;
  background: var(--accent);
  color: var(--text);
}

.tile-lang {
  grid-area: lang;
}

.tile-lang .lang-big {
  margin-bottom: auto;
  font-family: var(--display);
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.tile-tz {
  grid-area: tz;
}

.tile-tz strong {
  display: block;
  margin-bottom: auto;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "about  about"
      "s50    s11"
      "levels levels"
      "lang   tz";
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "about" "s50" "s11" "levels" "lang" "tz";
  }

  .tile-about {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .tile-about .about-photo {
    min-height: 300px;
  }

  .tile-about .about-text {
    padding: 4px 8px 12px;
  }
}

/* ---------- Lessons ---------- */

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lesson {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  overflow: hidden;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: background-color 0.35s, color 0.35s, transform 0.35s, border-color 0.35s;
}

.lesson:hover {
  border-color: var(--accent);
  background: var(--beige);
  transform: translateY(-6px);
}

.lesson-num {
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
}


/* Huge character bleeding off the top-right corner. */
.lesson-kanji {
  position: absolute;
  top: -0.14em;
  right: -0.1em;
  color: var(--accent);
  font-family: var(--jp);
  font-size: 15rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.13;
  transition: opacity 0.35s;
  pointer-events: none;
}

.lesson:hover .lesson-kanji {
  opacity: 0.35;
}

.lesson-body {
  position: relative;
  margin-top: auto;
}

.lesson h3 {
  font-size: clamp(1.7rem, 2.3vw, 2.2rem);
}

.lesson p {
  color: var(--text-soft);
  transition: color 0.35s;
}


.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  padding: 0.35em 0.85em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.75;
}

@media (max-width: 1000px) {
  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .lesson {
    min-height: 340px;
  }
}

/* ---------- How it works (dark) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.steps li {
  padding: 44px 44px 0 0;
}

.steps li + li {
  padding-left: 44px;
  border-left: 1px solid var(--line-dark);
}

.step-num {
  display: block;
  margin-bottom: 28px;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(4.5rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 1.5px rgb(35 31 32 / 0.3);
}

.steps li:hover .step-num {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}

.steps h3 {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.steps p {
  max-width: 24em;
  color: var(--on-ink-soft);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .steps li,
  .steps li + li {
    padding: 32px 0;
    border-left: 0;
  }

  .steps li + li {
    border-top: 1px solid var(--line-dark);
  }
}

/* ---------- Booking ---------- */

.booking-layout {
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  align-items: start;
  gap: 24px;
}

.booking-aside {
  position: sticky;
  top: 104px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-2);
  color: var(--text);
}

.booking-aside .tile-label {
  color: var(--on-ink-soft);
}

.aside-price {
  font-family: var(--display);
  font-size: clamp(3.4rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

/* "≈ US$22" under each yen price (filled in by app.js from config.js). */
.usd-estimate {
  display: block;
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.float-card .usd-estimate {
  margin: 0;
  font-size: 0.8rem;
}

.small-note {
  font-size: 0.85rem;
}

.aside-sub {
  margin-top: 8px;
  color: var(--on-ink-soft);
}

.aside-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.aside-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
}

.aside-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--on-ink-soft);
  font-size: 0.88rem;
}

.booking-aside a {
  color: var(--on-ink);
  font-size: 0.88rem;
}

.booking-card {
  min-height: 560px;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}

/* Progress bar: app.js sets data-step="1".."4" on .booking-card. */
.booking-progress {
  display: flex;
  gap: 10px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.booking-progress li {
  flex: 1;
  padding-top: 12px;
  border-top: 4px solid var(--line);
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 600;
}

.booking-card[data-step="1"] .booking-progress li:nth-child(-n + 1),
.booking-card[data-step="2"] .booking-progress li:nth-child(-n + 2),
.booking-card[data-step="3"] .booking-progress li:nth-child(-n + 3),
.booking-card[data-step="4"] .booking-progress li {
  border-top-color: var(--accent);
  color: var(--text);
}

.booking-step h3 {
  font-size: 1.6rem;
}

.booking-step + .booking-step {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* Day picker: week arrows, a 7-day strip, then one day's times
   (app.js renderPicker builds all of this inside #slots-list). */
.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.week-month {
  margin: 0;
  font-weight: 700;
}

.week-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s;
}

.week-arrow:hover:not(:disabled) {
  border-color: var(--text);
}

.week-arrow:disabled {
  color: var(--line);
  cursor: default;
}

.day-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.day-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 10px 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.day-tab:hover:not(:disabled) {
  border-color: var(--text);
}

.day-tab-weekday {
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 600;
}

.day-tab-num {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Small dot = this day has open times. */
.day-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.day-tab:disabled {
  border-color: transparent;
  background: transparent;
  color: var(--text-faint);
  cursor: default;
}

.day-tab:disabled .day-tab-weekday {
  color: var(--text-faint);
}

.day-tab:disabled .day-tab-dot {
  visibility: hidden;
}

.day-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}

.day-tab.is-active .day-tab-weekday {
  color: var(--on-ink-soft);
}

.day-times {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.day-label {
  margin-bottom: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}

.slot-button {
  width: 100%;
  padding: 0.7em;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.slot-button:hover {
  border-color: var(--text);
}

.slot-button.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}

.selected-slot {
  margin-bottom: 20px;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--paper);
}

/* Monthly plan: the subscription terms above the pay button (app.js renderSubscriptionTerms). */
.plan-terms {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 1.2em;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* Plan choice at the top of step 1 (app.js choosePlan). */
.plan-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

/* Phones: one plan per row, so every card is wide enough for its text
   (and the recommended ribbon) and they all look the same. */
@media (max-width: 520px) {
  .plan-picker {
    grid-template-columns: 1fr;
  }
}

.plan-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.plan-option:hover:not(.is-active, :disabled) {
  border-color: var(--text);
}

.plan-option.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.plan-name {
  font-size: 0.9rem;
  font-weight: 700;
}

/* The recommended plan (Standard): looks like the other cards (a teal
   outline would read as "selected"), lifted with a soft shadow, plus an
   orange ribbon across the top-right corner. */
.plan-option.is-recommended {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px -14px rgb(35 31 32 / 0.35);
}

.plan-option.is-recommended.is-active {
  box-shadow: inset 0 0 0 1px var(--accent), 0 12px 28px -14px rgb(35 31 32 / 0.35);
}

/* Positioned so the band crosses the corner far enough in for the whole
   word to show (closer to the corner, its ends get clipped by the card). */
.plan-ribbon {
  position: absolute;
  top: 24px;
  right: -44px;
  width: 160px;
  padding: 5px 0;
  background: #f28c38; /* warm orange; dark text on it stays readable */
  color: var(--text);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.12);
  pointer-events: none;
}

:root[data-lang="ja"] .plan-ribbon {
  letter-spacing: 0.12em;
}

/* A plan the schedule can't fill (see .plan-option:disabled) mutes its ribbon too. */
.plan-option.is-recommended:disabled {
  background: transparent;
  box-shadow: none;
}

.plan-option.is-recommended:disabled .plan-ribbon {
  opacity: 0.45;
}

/* Side panel: the recommended plan's row is lifted with the same soft shadow. */
.aside-plans li.is-recommended {
  box-shadow: 0 12px 28px -14px rgb(35 31 32 / 0.35);
}

.plan-price {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.plan-sub {
  color: var(--text-soft);
  font-size: 0.82rem;
}

/* Side panel: the three plans under the single-lesson price. */
.aside-plan {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.aside-plan .aside-sub {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.aside-plans {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aside-plans li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
}

.aside-plan-name,
.aside-plan-price {
  display: grid;
  line-height: 1.25;
}

.aside-plan-price {
  text-align: right;
}

.aside-plan-name > span,
.aside-plan-price > span {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.aside-plan-price strong small {
  margin-left: 2px;
  color: var(--text-soft);
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
}

.aside-plan-price strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* A plan the open schedule can't fill right now (app.js updatePlanAvailability). */
.plan-option:disabled {
  border-style: dashed;
  background: transparent;
  color: var(--text-faint);
  cursor: not-allowed;
}

.plan-option:disabled .plan-sub {
  color: var(--text-faint);
}

.plan-note:empty {
  display: none;
}

.plan-note {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.field {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.field input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 0.95em 1.05em;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.amount {
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.confirmed {
  padding-block: 24px;
  text-align: center;
}

/* Round "予約済" (booked) stamp shown on the confirmation step. */
.stamp {
  display: inline-grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin-bottom: 24px;
  border: 4px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-ink);
  font-family: var(--jp);
  font-size: 1.35rem;
  font-weight: 800;
  transform: rotate(-10deg);
}

.meeting-link-box {
  margin-top: 28px;
}

.meeting-link-box .muted {
  max-width: 34em;
  margin: 16px auto 0;
  font-size: 0.92rem;
}

.error {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--beige);
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 1000px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .day-strip {
    gap: 4px;
  }

  .day-tab-num {
    font-size: 1.1rem;
  }
}

/* ---------- Reviews ---------- */

.review-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}

/* Spans the first two reviews in the right-hand column; the rest flow
   into rows of two underneath. */
.review-feature {
  grid-row: span 2;
  border-color: var(--beige);
  background: var(--beige);
  color: var(--text);
}

.stars {
  margin-bottom: 20px;
  color: var(--accent);
  letter-spacing: 3px;
}

.review blockquote {
  flex: 1;
  margin: 0 0 28px;
  font-size: 1.1rem;
}

.review-feature blockquote {
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 800;
}

.review figcaption div span {
  display: block;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.review-feature figcaption div span {
  color: var(--on-ink-soft);
}

@media (max-width: 900px) {
  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-feature {
    grid-row: auto;
  }
}

/* ---------- FAQ + contact ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: clamp(40px, 6vw, 112px);
}

.faq-intro p {
  color: var(--text-soft);
  font-size: 1.1rem;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
  overflow-wrap: anywhere;
}

.contact-row:hover {
  border-color: var(--text);
  transform: translateX(4px);
}

.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-ink);
}

.contact-row small {
  display: block;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.contact-row b {
  font-weight: 600;
}

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

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--body);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.25s, background-color 0.25s, color 0.25s;
}

.faq details[open] summary::after {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
  transform: rotate(45deg);
}

.faq details p {
  max-width: 44em;
  padding-bottom: 28px;
  margin: 0;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(72px, 9vw, 128px) 0 32px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--text);
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line-dark);
}

.footer-cta h2 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.95;
}

.footer-cta h2 em {
  color: var(--accent);
  font-style: normal;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px;
}

.footer-grid p {
  max-width: 26em;
  margin-top: 18px;
  color: var(--on-ink-soft);
}

.footer-title {
  margin-bottom: 16px;
  color: var(--on-ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--on-ink);
  text-decoration: none;
  opacity: 0.85;
}

.footer-links a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  color: var(--on-ink-soft);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Manage booking page (manage.html / manage.js) ---------- */

.manage {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(56px, 7vw, 96px);
}

.manage h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.manage-intro {
  color: var(--text-soft);
}

.manage-notice {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  font-weight: 600;
}


.manage-lessons {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.manage-lesson {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}

.manage-lesson.is-cancelled {
  background: transparent;
  color: var(--text-faint);
}

.manage-lesson-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.manage-when {
  display: block;
  font-size: 1.05rem;
}

.manage-lesson.is-cancelled .manage-when {
  text-decoration: line-through;
}

.manage-status {
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.manage-actions {
  display: flex;
  gap: 8px;
}

.manage-lesson .small-note {
  margin: 10px 0 0;
}

.reschedule-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Week picker on the manage page: reuses the booking page's .week-nav /
   .day-strip / .slot-grid styles; only the label and "has a pick" are new. */
.picker-label {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.day-tab.has-pick:not(.is-active) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.manage-policy {
  margin-top: 32px;
}

/* Monthly plan summary at the top of the manage page (manage.js renderSubscription). */
.plan-card {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-2);
}

.plan-card-name {
  margin: 0;
  font-weight: 700;
}

.plan-card-status {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.plan-card-status.is-warning {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--beige);
  color: var(--text);
  font-weight: 600;
}

.plan-card-balance {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan-card-credits {
  margin: 4px 0 0;
  padding-left: 1.2em;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.plan-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.plan-card .reschedule-panel {
  border-top-color: var(--line-dark);
}

/* "Book lessons": the times selected so far + one Book button (manage.js renderBookingPanel). */
.pick-summary {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}

.pick-count {
  margin: 0 0 8px;
  font-weight: 700;
}

.pick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.pick-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
}

.pick-remove {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--text);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.manage-subheading {
  margin: 36px 0 0;
  font-size: 1.4rem;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 920px;
  margin-inline: auto;
  padding-block: clamp(64px, 8vw, 112px);
}

.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.legal h2 {
  margin-top: 48px;
  font-size: 1.5rem;
}

.legal p,
.legal ul {
  color: var(--text-soft);
}

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

.legal-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
}

.legal-table th,
.legal-table td {
  padding: 20px 24px;
  text-align: left;
  vertical-align: top;
}

.legal-table tr + tr th,
.legal-table tr + tr td {
  border-top: 1px solid var(--line);
}

.legal-table th {
  width: 32%;
  background: var(--paper);
  font-weight: 600;
}

@media (max-width: 640px) {
  .legal-table th,
  .legal-table td {
    display: block;
    width: auto;
  }

  .legal-table th {
    padding-bottom: 10px;
  }

  .legal-table tr + tr td {
    border-top: 0;
  }
}
