@font-face {
  font-family: "Shadows Into Light";
  src: url("assets/fonts/ShadowsIntoLight-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #02080e;
  --ink-soft: #061722;
  --panel: rgba(3, 17, 26, .9);
  --paper: #f7f5f0;
  --muted: #b8c6cc;
  --cyan: #46d5f5;
  --cyan-dim: rgba(70, 213, 245, .25);
  --red: #ef2528;
  --serif: "Cormorant Garamond", Georgia, serif;
  --jp: "Noto Serif JP", "Yu Mincho", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { max-width: 100%; scroll-behavior: smooth; overflow-x: hidden; background: var(--ink); }
body {
  min-height: 100vh;
  width: 100vw;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 12%, rgba(23, 130, 164, .2), transparent 31rem),
    linear-gradient(180deg, #01070c, #03131d 48%, #02080e);
  font-family: var(--serif);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("assets/hero-koi-wave-v3.webp") 68% top / cover no-repeat;
  opacity: .09;
  filter: saturate(.8);
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100vw;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px clamp(22px, 6vw, 96px);
  border-bottom: 1px solid rgba(70, 213, 245, .18);
  background: rgba(1, 8, 13, .88);
  backdrop-filter: blur(18px);
}
.legal-brand { display: inline-flex; align-items: center; gap: 14px; }
.legal-brand img { width: 61px; height: 61px; object-fit: contain; border-radius: 50%; }
.legal-brand span { display: flex; flex-direction: column; }
.legal-brand strong { font: 35px/.76 "Shadows Into Light", cursive; letter-spacing: .035em; }
.legal-brand small { margin-top: 7px; color: #dbe5e8; font-size: 11px; letter-spacing: .17em; }
.legal-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); font-weight: 600; }
.legal-nav a { position: relative; padding: 10px 0; color: #d7e0e3; }
.legal-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--red); transition: right .2s; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: white; }
.legal-nav a:hover::after, .legal-nav a[aria-current="page"]::after { right: 0; }

.legal-main { width: calc(100vw - 36px); max-width: 1000px; margin: 0 auto; padding: 72px 0 84px; }
.legal-hero { max-width: 760px; margin-bottom: 35px; }
.legal-eyebrow { margin: 0 0 12px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.legal-hero h1 { margin: 0; font-size: clamp(48px, 7vw, 78px); line-height: .86; font-weight: 500; letter-spacing: -.025em; }
.legal-summary { margin: 23px 0 0; color: #d4dee2; font-size: 18px; line-height: 1.55; }
.legal-meta { display: inline-flex; margin-top: 20px; padding: 7px 12px; border: 1px solid var(--cyan-dim); border-radius: 999px; color: #a9c1ca; font-size: 12px; letter-spacing: .06em; background: rgba(1, 12, 19, .64); }

.legal-card {
  width: 100%;
  min-width: 0;
  padding: clamp(25px, 5vw, 58px);
  border: 1px solid rgba(70, 213, 245, .28);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(5, 26, 39, .94), rgba(2, 11, 18, .96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}
.legal-card section + section { margin-top: 38px; padding-top: 38px; border-top: 1px solid rgba(70, 213, 245, .13); }
.legal-card h2 { margin: 0 0 13px; font-size: clamp(25px, 3vw, 34px); line-height: 1; font-weight: 600; }
.legal-card h3 { margin: 23px 0 8px; font-size: 20px; }
.legal-card p, .legal-card li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.legal-card p, .legal-card li, .legal-card a { overflow-wrap: anywhere; }
.legal-card p { margin: 0; }
.legal-card p + p { margin-top: 13px; }
.legal-card ul, .legal-card ol { margin: 13px 0 0; padding-left: 23px; }
.legal-card li + li { margin-top: 8px; }
.legal-card a { color: #8be8fb; text-decoration: underline; text-decoration-color: rgba(139, 232, 251, .4); text-underline-offset: 3px; }
.legal-card strong { color: #edf4f6; }
.legal-callout { margin-top: 22px; padding: 20px 22px; border-left: 3px solid var(--red); border-radius: 0 10px 10px 0; background: rgba(239, 37, 40, .07); }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.legal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid var(--red); border-radius: 999px; color: white !important; text-decoration: none !important; background: linear-gradient(180deg, #ef3435, #a7070d); box-shadow: 0 12px 30px rgba(130, 0, 0, .28); font-weight: 700; }
.legal-button--ghost { border-color: rgba(70, 213, 245, .55); background: rgba(6, 32, 45, .78); box-shadow: none; }

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 27px clamp(22px, 6vw, 96px);
  border-top: 1px solid rgba(70, 213, 245, .15);
  color: #90a4ad;
  background: #01070c;
  font-size: 12px;
}
.legal-footer address { font-style: normal; text-align: right; }

@media (max-width: 700px) {
  .legal-header { position: relative; align-items: flex-start; flex-direction: column; gap: 7px; padding: 13px 20px 16px; }
  .legal-header > * { max-width: 100%; }
  .legal-brand img { width: 54px; height: 54px; }
  .legal-brand strong { font-size: 31px; }
  .legal-nav { width: 100%; max-width: 100%; gap: 19px; overflow-x: auto; font-size: 14px; }
  .legal-nav a { white-space: nowrap; }
  .legal-main { padding-top: 46px; }
  .legal-summary { font-size: 16px; }
  .legal-card p, .legal-card li { font-size: 15px; }
  .legal-actions { display: grid; grid-template-columns: 1fr; }
  .legal-button { width: 100%; max-width: 100%; white-space: normal; text-align: center; }
  .legal-footer { flex-direction: column; }
  .legal-footer address { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
