/* CloudEx — 2026 redesign ("余白と明朝")
   Mobile-first. Breakpoints: 768 (header nav), 1024 (two-column sections),
   1180 (app index in one row), 1320 (full desktop grid). */

:root {
  --paper: #F5F3EE;
  --paper-2: #ECE9E1;
  --white: #FFFFFF;
  --ink: #1C1B22;
  --ink-2: #4A4754;
  --muted: #5E5B66;
  --muted-2: #625F6B;
  --line: #DDD8CD;
  --line-2: #CFCABE;
  --card-line: #E4E0D6;
  --pill-line: #BDB7AA;
  --accent: #43388A;
  --night: #1C1B22;
  --night-text: #EDEAE3;
  --night-muted: #A9A6B2;
  --night-dim: #8E8B98;
  --night-line: #34323D;

  --serif: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', Meiryo, sans-serif;

  --gutter: clamp(20px, 8.33vw, 120px);
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root { --header-h: 96px; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@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(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 999px;
}
.skip-link:focus { top: 12px; color: var(--paper); }

:lang(ja) :is(.h2, .hero-title, .hero-lead, .body-text, .legal-title, .biz-line p, .feature-desc) { word-break: auto-phrase; }

.nb { display: inline-block; }

br.sp { display: inline; }
br.pc { display: none; }
@media (min-width: 768px) {
  br.sp { display: none; }
  br.pc { display: inline; }
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; }
.brand img { height: 24px; width: auto; }

.nav { display: none; }

.nav-toggle {
  width: 44px; height: 44px;
  margin-right: -12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg path { transition: transform 0.25s ease; transform-box: fill-box; transform-origin: center; }
.site-header.is-open .nav-toggle .l1 { transform: translateY(4px) rotate(45deg); }
.site-header.is-open .nav-toggle .l2 { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu[inert] { pointer-events: none; }
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  padding: 40px var(--gutter) 48px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.site-header.is-open + .mobile-menu { visibility: visible; opacity: 1; }
.mobile-menu a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
}
.mobile-menu .lang {
  margin-top: 32px;
  display: flex;
  gap: 20px;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.mobile-menu .lang a {
  min-height: 44px;
  border: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}
.mobile-menu .lang a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }

@media (min-width: 768px) {
  .brand img { height: 30px; }
  .nav-toggle, .mobile-menu { display: none; }
  .nav {
    display: flex;
    align-items: center;
    gap: 44px;
    font-size: 14px;
    letter-spacing: 0.08em;
  }
  .nav a { text-decoration: none; padding: 8px 0; }
  .nav a.nav-contact { border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
  .nav a.nav-contact:hover { border-color: var(--accent); }
}

/* ── Shared type ────────────────────────────────────── */

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted-2);
}

.h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.6;
  text-wrap: balance;
}

.body-text {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
}

.icon-arrow { width: 16px; height: 16px; flex-shrink: 0; }

@media (min-width: 768px) {
  .eyebrow { font-size: 13px; letter-spacing: 0.24em; }
  .h2 { font-size: 36px; line-height: 1.55; }
  .body-text { font-size: 17px; line-height: 2; }
}
@media (min-width: 1024px) {
  .h2 { font-size: clamp(30px, 3.1vw, 44px); }
  .h2-company { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.6; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .h2-company { font-size: 30px; }
}

html[lang="en"] .h2 { line-height: 1.35; }
html[lang="en"] .body-text { line-height: 1.85; }

/* ── Buttons ────────────────────────────────────────── */

.btn {
  height: 56px;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--accent); color: var(--paper); }

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}

@media (min-width: 768px) {
  .btn { height: 60px; }
}

/* ── Hero ───────────────────────────────────────────── */

.hero { padding: 56px 0; }
.hero .wrap { position: relative; }

.hero-title {
  margin-top: 28px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(44px, 8.3vw, 120px);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
html[lang="en"] .hero-title {
  font-size: clamp(44px, 7.8vw, 112px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero-tagline {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}
.hero-tagline::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.hero-tagline span {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2em;
}
html[lang="en"] .hero-tagline span { letter-spacing: 0.08em; }

.hero-lead {
  margin-top: 28px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.hero-actions .text-link { justify-content: center; }

.hero > .wrap > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero > .wrap > :nth-child(2) { animation-delay: 0.06s; }
.hero > .wrap > :nth-child(3) { animation-delay: 0.14s; }
.hero > .wrap > :nth-child(4) { animation-delay: 0.2s; }
.hero > .wrap > :nth-child(5) { animation-delay: 0.26s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 768px) {
  .hero { padding: 128px 0 0; }
  .hero-title { margin-top: 40px; }
  .hero-lead { margin-top: 48px; font-size: 18px; line-height: 2; }
  html[lang="en"] .hero-lead { line-height: 1.8; }
  .hero-actions {
    margin-top: 56px;
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .hero-title { max-width: calc(100% - 160px); }
  .hero-tagline {
    position: absolute;
    top: 8px;
    right: 0;
    width: 120px;
    margin: 0;
    flex-direction: column;
    gap: 28px;
  }
  .hero-tagline::before { width: 1px; height: 140px; }
  .hero-tagline span {
    writing-mode: vertical-rl;
    font-size: 24px;
    letter-spacing: 0.32em;
  }
  html[lang="en"] .hero-tagline span { font-size: 22px; letter-spacing: 0.12em; }
}

/* ── App index ribbon ───────────────────────────────── */

.app-index {
  padding: 20px 0 56px;
  border-top: 1px solid var(--line);
}
.app-index-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}
.app-index-icons {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.app-index-icons img { width: 100%; aspect-ratio: 1; border-radius: 22%; }

/* The column count and the desktop icon size are tuned to the number of apps
   (24 = 3 x 8 / 2 x 12 rows; 24 x 38px still leaves a gap at 1180px). Revisit both when apps are added. */
@media (min-width: 600px) {
  .app-index-icons { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 768px) {
  .app-index { margin-top: 112px; padding: 28px 0 128px; }
  .app-index-head { font-size: 12px; letter-spacing: 0.2em; }
  .app-index-icons { margin-top: 20px; }
}
@media (min-width: 1180px) {
  .app-index-icons { display: flex; justify-content: space-between; gap: 0; }
  .app-index-icons img { width: 38px; height: 38px; border-radius: 10px; }
}

/* ── Sections ───────────────────────────────────────── */

.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.section-alt {
  background: var(--paper-2);
  scroll-margin-top: var(--header-h);
}
.section-alt .section { border-top: 0; }
.section-alt + .section { border-top: 0; }

.section-grid { display: block; }

.sec-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 4px;
  margin-bottom: 32px;
}
.sec-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}
.sec-title { font-size: 14px; font-weight: 700; letter-spacing: 0.2em; }
.sec-en { font-size: 11px; letter-spacing: 0.2em; color: var(--muted-2); }
html[lang="en"] .sec-title { letter-spacing: 0.12em; }

.sec-body > .body-text { margin-top: 20px; }

@media (min-width: 768px) {
  .section { padding: 96px 0; }
}

@media (min-width: 1024px) {
  .section { padding: 128px 0; }
  .section-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 56px;
  }
  .sec-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 0;
  }
  .sec-num { font-size: 64px; }
  .sec-title { font-size: 15px; }
  .sec-en { font-size: 12px; }
  .sec-body > .body-text { margin-top: 32px; max-width: 760px; }
}
@media (min-width: 1320px) {
  .section-grid { grid-template-columns: 320px minmax(0, 1fr); column-gap: 80px; }
}

/* ── Business ───────────────────────────────────────── */

.biz-lines {
  margin-top: 40px;
  display: grid;
  gap: 28px;
}
.biz-line {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.biz-line-no { font-size: 11px; letter-spacing: 0.2em; color: var(--muted-2); }
.biz-line-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.45;
}
.biz-line p { font-size: 14px; line-height: 1.9; color: var(--ink-2); }

@media (min-width: 768px) {
  .biz-lines { margin-top: 64px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .biz-line { padding-top: 24px; gap: 12px; }
  .biz-line-no { font-size: 12px; }
  .biz-line-title { font-size: 24px; }
}
@media (min-width: 1024px) and (max-width: 1319px) {
  .biz-line-title { font-size: 20px; }
  .biz-line p { font-size: 15px; }
}

/* ── Products: featured ─────────────────────────────── */

.features {
  margin-top: 40px;
  display: grid;
  gap: 16px;
}
.feature {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
}
.feature-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.feature-head img { width: 64px; height: 64px; border-radius: 15px; flex-shrink: 0; }
.feature-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
}
.feature-desc { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.feature-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--card-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.feature-head + .feature-foot { margin-top: 20px; }
.feature-stores {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.feature-stores a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.feature-stores a:hover { text-decoration: underline; text-underline-offset: 4px; }
.feature-site {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.feature-site:hover { text-decoration: underline; text-underline-offset: 4px; }
.feature-site .icon-arrow { width: 14px; height: 14px; }

@media (min-width: 768px) {
  .features { margin-top: 56px; }
  .feature { padding: 32px; }
  .feature-head img { width: 72px; height: 72px; border-radius: 16px; }
  .feature-name { font-size: 26px; }
  .feature-desc { font-size: 15px; }
  .feature-stores { font-size: 13px; }
}

@media (min-width: 1320px) {
  .features { margin-top: 72px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .feature { padding: 36px; }
  .feature-head { flex-direction: column; align-items: flex-start; gap: 0; }
  .feature-head img { width: 80px; height: 80px; border-radius: 18px; }
  .feature-name { margin-top: 32px; font-size: 28px; line-height: 1.3; }
  .feature-desc { margin-top: 10px; line-height: 1.8; }
  .feature-head + .feature-foot { margin-top: 32px; }
  .feature-foot { padding-top: 16px; }
}

/* ── Products: category index ───────────────────────── */

.catalog {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.cat {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
}
.cat-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
}
.cat-count { font-size: 12px; letter-spacing: 0.12em; color: var(--muted-2); white-space: nowrap; }

.app {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.app-link {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.app-link img { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.app-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.app-name { font-size: 16px; font-weight: 700; line-height: 1.5; }
.app-desc { font-size: 13px; line-height: 1.6; color: var(--muted); }
.app-link:hover .app-name { color: var(--accent); }
.app-link:hover { color: inherit; }

.app-tags { display: flex; gap: 6px; flex-shrink: 0; }
.tag {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.tag span {
  padding: 4px 9px;
  border: 1px solid var(--pill-line);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tag:hover span { border-color: var(--accent); color: var(--accent); }

@media (min-width: 768px) {
  .catalog { margin-top: 96px; gap: 56px; }
  .cat { padding-top: 28px; }
  .cat-name { font-size: 22px; }
  .cat-count { font-size: 13px; }
  .app-link { padding: 18px 0; gap: 20px; }
  .app-link img { width: 48px; height: 48px; border-radius: 11px; }
  .app-name { font-size: 17px; }
  .app-desc { font-size: 14px; }
}

@media (min-width: 1024px) {
  .cat {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 56px;
  }
  .cat-head {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 0;
  }
}
@media (min-width: 1320px) {
  .cat { grid-template-columns: 320px minmax(0, 1fr); column-gap: 80px; }
  .app-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}

/* ── Company ────────────────────────────────────────── */

.facts {
  margin-top: 28px;
  border-bottom: 1px solid var(--line-2);
}
.facts > div {
  padding: 16px 0;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  line-height: 1.8;
}
.facts dt { font-size: 12px; letter-spacing: 0.1em; color: var(--muted-2); }

@media (min-width: 600px) {
  .facts > div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    padding: 22px 0;
  }
  .facts dt { font-size: 15px; letter-spacing: 0; line-height: 1.8; }
}
@media (min-width: 1024px) {
  .facts { margin-top: 48px; }
}

/* ── Contact ────────────────────────────────────────── */

.contact .body-text { margin-top: 16px; }
.contact-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-actions .btn { width: 100%; }

@media (min-width: 768px) {
  .contact .h2 { font-size: 40px; line-height: 1.5; }
  html[lang="en"] .contact .h2 { line-height: 1.3; }
  .contact .body-text { margin-top: 28px; }
  .contact-actions { margin-top: 44px; flex-direction: row; align-items: center; }
  .contact-actions .btn { width: auto; }
}
@media (min-width: 1320px) {
  .contact .h2 { font-size: 52px; }
}

/* ── Footer ─────────────────────────────────────────── */

.site-footer {
  padding: 48px 0 32px;
  background: var(--night);
  color: var(--night-text);
}
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible { outline-color: var(--night-text); }

.footer-top { display: flex; flex-direction: column; gap: 40px; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand p {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--night-muted);
}
.footer-navs {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px 24px;
}
.footer-nav { display: flex; flex-direction: column; font-size: 14px; }
.footer-nav a { min-height: 40px; display: flex; align-items: center; gap: 8px; }
.footer-nav-title {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--night-dim);
}
.footer-nav svg { width: 16px; height: 16px; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--night-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--night-dim);
}
.footer-lang { display: flex; gap: 16px; }
.footer-lang a { min-height: 44px; display: inline-flex; align-items: center; color: var(--night-dim); }
.footer-lang a[aria-current] { color: var(--night-text); }

@media (min-width: 768px) {
  .site-footer { padding: 80px 0 48px; }
  .footer-brand img { height: 30px; }
  .footer-brand p { margin-top: 20px; font-size: 16px; }
  .footer-navs { display: flex; gap: 56px; }
  .footer-nav { flex-shrink: 0; }
  .footer-nav { gap: 2px; }
  .footer-nav-title { font-size: 12px; margin-bottom: 8px; }
  .footer-bottom { margin-top: 72px; padding-top: 28px; }
}
@media (min-width: 1024px) {
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-navs { gap: 72px; }
}

/* ── Legal pages ────────────────────────────────────── */

.legal-page { padding: 48px 0 72px; }

.legal-aside { margin-bottom: 32px; }
.legal-nav {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 13px;
}
.legal-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
}
.legal-nav a:hover { color: var(--accent); }
.legal-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}

.legal-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.45;
  text-wrap: balance;
}
.legal-lead { margin-top: 12px; font-size: 14px; color: var(--muted); }

.prose {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--ink);
  max-width: 760px;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
}
html[lang="en"] .prose { line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.4em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 1.2em; padding-top: 0; border-top: 0; }
.prose h3 {
  margin-top: 1.8em;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--accent); text-underline-offset: 4px; }

.prose table { width: 100%; border-collapse: collapse; }
.prose table:first-child { margin-top: 0; }
.prose tr { border-bottom: 1px solid var(--line-2); }
.prose th, .prose td {
  display: block;
  padding: 0;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
.prose th { padding-top: 16px; font-size: 12px; letter-spacing: 0.1em; color: var(--muted-2); }
.prose td { padding: 4px 0 16px; color: var(--ink); }

@media (min-width: 768px) {
  .legal-page { padding: 96px 0 128px; }
  .legal-title { font-size: 40px; }
  .legal-lead { font-size: 15px; }
  .prose { margin-top: 56px; font-size: 16px; }
  .prose h2 { font-size: 22px; }
  .prose h3 { font-size: 17px; }
  .prose th, .prose td { display: table-cell; padding: 22px 0; }
  .prose th { width: 220px; padding-right: 24px; font-size: 15px; letter-spacing: 0; line-height: 1.8; }
}

@media (min-width: 1024px) {
  .legal-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 56px;
    align-items: start;
  }
  .legal-aside {
    position: sticky;
    top: calc(var(--header-h) + 48px);
    margin-bottom: 0;
  }
  .legal-nav { flex-direction: column; gap: 0; font-size: 14px; }
  .legal-title { font-size: 44px; }
}
@media (min-width: 1320px) {
  .legal-grid { grid-template-columns: 320px minmax(0, 1fr); column-gap: 80px; }
}
