:root {
  --green: #00412f;
  --orange: #ff5b0a;
  --ink: #171b18;
  --muted: #606762;
  --line: #d8ded9;
  --soft: #f6f8f5;
  --white: #fff;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.85;
  letter-spacing: .008em;
  font-feature-settings: normal;
  font-kerning: normal;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

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

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

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

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

.legal-logo {
  width: 174px;
  height: auto;
}

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

.legal-main {
  padding: clamp(54px, 8vw, 92px) 0;
}

.legal-title {
  margin: 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .005em;
}

.legal-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
}

.legal-updated {
  margin-top: 14px;
  color: var(--muted);
  font-size: .85rem;
}

.legal-alert {
  margin-top: 34px;
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  background: #fff8f3;
  color: #473b34;
}

.legal-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: clamp(1.22rem, 3vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -.01em;
}

.legal-section h3 {
  margin: 24px 0 8px;
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 700;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
  margin-top: 10px;
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.4em;
}

.legal-table {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}

.legal-table th,
.legal-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.legal-table th {
  width: 31%;
  background: var(--soft);
  color: var(--green);
}

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

.legal-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: .84rem;
}

.legal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

@media (max-width: 640px) {
  .legal-header-inner,
  .legal-main,
  .legal-footer-inner {
    width: min(100% - 28px, 920px);
  }

  .legal-logo {
    width: 138px;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    padding-bottom: 8px;
    border-bottom: 0;
  }

  .legal-table td {
    padding-top: 8px;
  }
}
