/* AXICUT legal pages: the same identity, composed for sustained reading.
   Brand geometry and colors follow docs/BRAND_DESIGN.md and the approved R19 mark. */
.legal-page {
  --legal-paper: #ffffff;
  --legal-ink: #071d3b;
  --legal-muted: #526277;
  --legal-line: #d3dce5;
  --legal-navy: #062348;
  --legal-cyan: #00bfe4;
  --legal-action: #007caa;
  --legal-gutter: clamp(22px, 4.8vw, 88px);
  margin: 0;
  color: var(--legal-ink);
  background: var(--legal-paper);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  line-break: strict;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.legal-page *, .legal-page *::before, .legal-page *::after { box-sizing: border-box; }
.legal-page ::selection { background: #b9eaf5; color: var(--legal-navy); }
.legal-page :is(h1, h2, p, ol, ul) { margin: 0; }
.legal-page a { color: inherit; text-decoration: none; touch-action: manipulation; }
.legal-page :is(a, summary) { -webkit-tap-highlight-color: #00bfe426; }
.legal-page :is(a, summary, [tabindex]):focus-visible { outline: 2px solid var(--legal-action); outline-offset: 5px; }
.legal-wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--legal-gutter); }
.legal-skip { position: fixed; z-index: 10; left: 20px; top: 12px; padding: 10px 20px; background: var(--legal-navy); color: #fff !important; transform: translateY(-180%); }
.legal-skip:focus { transform: none; }
.legal-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 16px; border-bottom: 1px solid #e8edf2; }
.legal-logo { display: flex; align-items: center; flex: none; min-height: 44px; }
.legal-logo img { display: block; width: 184px; max-width: 100%; height: auto; }
.legal-header nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.legal-header nav a { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; }
.legal-home:hover { color: var(--legal-action); }
.legal-contact { background: var(--legal-navy); color: #fff !important; border-radius: 4px; padding: 10px 20px; }
.legal-contact:hover { background: #0c3963; }
.legal-intro { padding-block: clamp(56px, 6.5vw, 100px) clamp(44px, 5vw, 76px); }
.legal-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .06em; }
.legal-eyebrow > span { display: block; width: 9px; height: 13px; background: var(--legal-cyan); clip-path: polygon(65% 0, 100% 0, 35% 100%, 0 100%); }
.legal-intro h1 { margin-block: 24px; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.45; letter-spacing: -.035em; font-weight: 500; }
.legal-intro h1 > span { display: inline-block; max-width: 100%; }
.legal-lead { max-width: 50em; color: var(--legal-muted); font-size: 17px; line-height: 1.9; text-wrap: balance; }
.legal-layout { display: grid; grid-template-columns: minmax(210px, 260px) minmax(0, 720px); gap: clamp(48px, 6.5vw, 104px); align-items: start; padding-bottom: 96px; }
.legal-sidebar { position: sticky; top: 32px; }
.legal-toc-title { margin-bottom: 16px !important; font-size: 14px; font-weight: 500; }
.legal-sidebar ol { list-style: none; padding: 0; }
.legal-sidebar a { display: flex; align-items: baseline; gap: 13px; min-height: 44px; padding-block: 10px; font-size: 14px; line-height: 1.65; }
.legal-sidebar a > span:first-child { flex: 0 0 1.5em; color: var(--legal-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.legal-sidebar a:hover { color: var(--legal-action); }
.legal-mobile-toc { display: none; }
.legal-content { min-width: 0; border-top: 2px solid var(--legal-navy); }
.legal-section { padding-block: 34px 38px; border-bottom: 1px solid var(--legal-line); scroll-margin-top: 28px; }
.legal-section h2 { display: flex; align-items: baseline; gap: 18px; margin-bottom: 18px; font-size: 22px; line-height: 1.65; letter-spacing: -.015em; font-weight: 500; }
.legal-section-number { flex: 0 0 1.7em; font-size: 13px; font-weight: 400; line-height: 1.65; letter-spacing: .04em; color: var(--legal-action); font-variant-numeric: tabular-nums; }
.legal-section :is(p, li) { font-size: 16px; line-height: 1.95; text-wrap: pretty; }
.legal-section ul { padding-left: 1.35em; }
.legal-section p + ul { margin-top: 14px; }
.legal-section li { padding-left: .2em; }
.legal-section li + li { margin-top: 10px; }
.legal-section li::marker { color: #6e8ca4; }
.legal-section a { display: inline-block; min-height: 44px; padding-block: 6px; color: var(--legal-action); text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
.legal-section a:hover { text-decoration-thickness: 2px; }
.legal-document-end { display: flex; justify-content: flex-end; padding-top: 24px; }
.legal-document-end a { display: flex; align-items: center; gap: 26px; min-height: 44px; font-size: 14px; }
.legal-document-end a:hover { color: var(--legal-action); }
.legal-footer { background: var(--legal-navy); color: #fff; border-top: 3px solid var(--legal-cyan); padding-block: 56px 24px; }
.legal-footer-top { display: flex; align-items: start; justify-content: space-between; gap: 48px; padding-bottom: 40px; }
.legal-footer-identity { min-width: 0; }
.legal-footer-identity .legal-logo { width: fit-content; margin-bottom: 24px; }
.legal-footer-identity p { color: #c4d5e5; font-size: 14px; line-height: 1.85; }
.legal-footer-identity p + p { margin-top: 7px; }
.legal-footer-identity p a { display: inline-block; min-height: 44px; padding-block: 8px; color: #fff; text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
.legal-footer-nav { display: grid; min-width: 240px; }
.legal-footer-nav a { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding-block: 10px; font-size: 14px; line-height: 1.7; }
.legal-footer-nav a[aria-current] { color: #c4d5e5; }
.legal-footer-nav a:hover { color: #70e3f5; }
.legal-copyright { padding-top: 22px; border-top: 1px solid #587795; color: #c4d5e5; font-size: 12px; }
.legal-error { max-width: 960px; min-height: 540px; padding-block: clamp(64px, 7vw, 108px); }
.legal-error h1 { margin-block: 24px 28px; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.45; letter-spacing: -.035em; font-weight: 500; }
.legal-error h1 > span { display: inline-block; max-width: 100%; }
.legal-error-description { color: var(--legal-muted); font-size: 16px; line-height: 1.9; text-wrap: balance; }
.legal-error-description p + p { margin-top: 6px; }
.legal-error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 36px; }
.legal-error-actions a { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 48px; font-size: 15px; }
.legal-error-actions a:not(.legal-contact) { border-bottom: 1px solid var(--legal-line); }
.legal-error-actions a:not(.legal-contact):hover { color: var(--legal-action); }
@media (max-width: 1050px) {
  .legal-logo img { width: 156px; }
  .legal-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 760px) {
  .legal-header { min-height: 84px; gap: 16px; }
  .legal-logo img { width: 146px; }
  .legal-header nav { gap: 0; }
  .legal-header nav .legal-home { display: none; }
  .legal-header nav .legal-contact { gap: 10px; padding: 8px 13px; }
  .legal-intro { padding-block: 52px 32px; }
  .legal-intro h1 { margin-block: 22px; font-size: clamp(30px, 7.7vw, 38px); line-height: 1.4; }
  .legal-eyebrow { font-size: 13px; }
  .legal-lead { font-size: 16px; line-height: 1.9; }
  .legal-layout { display: block; padding-bottom: 56px; }
  .legal-sidebar { position: static; margin-bottom: 32px; }
  .legal-desktop-toc { display: none; }
  .legal-mobile-toc { display: block; border-block: 1px solid var(--legal-line); }
  .legal-mobile-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; padding-block: 12px; cursor: pointer; list-style: none; font-size: 15px; }
  .legal-mobile-toc summary::-webkit-details-marker { display: none; }
  .legal-mobile-toc summary > span { font-size: 22px; font-weight: 400; }
  .legal-mobile-toc[open] summary > span { transform: rotate(45deg); }
  .legal-mobile-toc nav { padding-bottom: 16px; }
  .legal-sidebar a { padding-block: 11px; }
  .legal-section { padding-block: 28px 30px; }
  .legal-section h2 { font-size: 20px; gap: 12px; margin-bottom: 16px; }
  .legal-section-number { flex-basis: 1.6em; font-size: 12px; }
  .legal-section :is(p, li) { line-height: 1.9; }
  .legal-footer { padding-top: 40px; }
  .legal-footer-top { flex-direction: column; gap: 26px; padding-bottom: 28px; }
  .legal-footer-nav { width: 100%; min-width: 0; max-width: 400px; }
  .legal-footer-identity p { font-size: 13px; }
  .legal-copyright { font-size: 12px; line-height: 1.8; }
  .legal-error { min-height: 0; padding-block: 56px 64px; }
  .legal-error h1 { font-size: clamp(30px, 7.7vw, 38px); margin-bottom: 24px; }
  .legal-error-actions { gap: 16px 28px; margin-top: 30px; }
}
@media (max-width: 360px) {
  .legal-header { gap: 12px; }
  .legal-header nav .legal-contact { gap: 6px; padding-inline: 10px; font-size: 13px; }
  .legal-section h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .legal-page { scroll-behavior: auto; }
}

.legal-heading-unit { display:inline-block; }
