:root {
  --ink: #151515;
  --soft-ink: #44413a;
  --muted: #756f65;
  --paper: #fbfaf7;
  --white: #ffffff;
  --gold: #d8b85a;
  --gold-soft: #f1e3b6;
  --mint-deep: #436b5b;
  --line: rgba(21, 21, 21, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner,
.legal-hero,
.legal-content,
.legal-footer-inner {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

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

.brand {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 700;
}

.legal-hero {
  padding: 86px 0 58px;
}

.legal-kicker {
  margin: 0 0 14px;
  color: var(--mint-deep);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0;
}

h1 {
  font-size: 42px;
  line-height: 1.35;
}

.legal-hero p:last-child {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--soft-ink);
  line-height: 2;
}

.legal-content {
  padding: 0 0 92px;
}

.legal-card,
.legal-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-card {
  overflow: hidden;
}

.legal-table {
  margin: 0;
}

.legal-table div {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--line);
}

.legal-table div:last-child {
  border-bottom: 0;
}

.legal-table dt,
.legal-table dd {
  margin: 0;
  padding: 22px 24px;
  line-height: 1.8;
}

.legal-table dt {
  background: #f5f2ea;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.legal-table dd {
  color: var(--soft-ink);
}

.legal-section {
  margin-top: 18px;
  padding: 34px;
}

.legal-section h2 {
  font-size: 24px;
  line-height: 1.45;
}

.legal-section p,
.legal-section li {
  color: var(--soft-ink);
  line-height: 1.95;
}

.legal-section p {
  margin: 18px 0 0;
}

.legal-section ul,
.legal-section ol {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 1.4em;
}

.notice {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: #fff8df;
  color: var(--soft-ink);
  line-height: 1.9;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--soft-ink);
}

.legal-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #0f0f0e;
}

.legal-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 720px) {
  .header-inner,
  .legal-hero,
  .legal-content,
  .legal-footer-inner {
    width: min(100% - 28px, 1040px);
  }

  .header-inner {
    min-height: 64px;
  }

  .back-link {
    display: none;
  }

  .legal-hero {
    padding: 58px 0 38px;
  }

  h1 {
    font-size: 32px;
  }

  .legal-table div {
    grid-template-columns: 1fr;
  }

  .legal-table dt,
  .legal-table dd {
    padding: 16px 18px;
  }

  .legal-section {
    padding: 24px 20px;
  }
}
