:root {
  color-scheme: light;
  --ink: #20201f;
  --muted: #6e6a62;
  --cream: #fbf7ed;
  --paper: #fffdf8;
  --orange: #e97735;
  --green: #39765a;
  --line: #ded7c8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.8;
}

a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--orange); }

.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .94);
}

.legal-header-inner,
.legal-main,
.legal-footer-inner {
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
}

.legal-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

.back-link { font-size: .9rem; font-weight: 700; }

.legal-main { padding: 64px 0 80px; }

.legal-hero { margin-bottom: 36px; }
.legal-hero .eyebrow {
  color: var(--orange);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}

h1 { margin: 8px 0 12px; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.2; }
.lead { max-width: 720px; color: var(--muted); }

.legal-card {
  margin-top: 18px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 14px 38px rgba(51, 45, 35, .06);
}

h2 { margin: 0 0 12px; font-size: 1.35rem; }
h3 { margin: 24px 0 6px; font-size: 1.05rem; }
p, ul, ol { margin-top: 0; }
li + li { margin-top: 6px; }
.note { padding: 16px 18px; border-left: 4px solid var(--orange); background: #fff5e9; }
.updated { color: var(--muted); font-size: .85rem; }

.legal-footer { padding: 28px 0; border-top: 1px solid var(--line); background: var(--paper); }
.legal-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.legal-footer a { font-size: .82rem; font-weight: 700; }
.legal-footer small { white-space: nowrap; color: var(--muted); }

@media (max-width: 680px) {
  .legal-header-inner, .legal-main, .legal-footer-inner { width: min(100% - 28px, 920px); }
  .legal-main { padding-top: 42px; }
  .legal-footer-inner { align-items: flex-start; flex-direction: column; }
}
