:root {
  --legal-content: min(920px, calc(100% - 48px));
}

.legal-page { background: var(--ivory); }

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 251, 0.94);
  backdrop-filter: blur(14px);
}

.legal-header-inner {
  width: var(--legal-content);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-header img { width: 108px; }

.legal-home-link {
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 750;
}

.legal-main {
  width: var(--legal-content);
  margin: 0 auto;
  padding: 104px 0 130px;
}

.legal-eyebrow {
  color: var(--coral-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.legal-main h1 {
  margin: 18px 0 15px;
  color: var(--green-deep);
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1.28;
  letter-spacing: -0.045em;
}

.legal-date { color: var(--soft-text); font-size: 14px; }

.legal-notice {
  margin: 42px 0 64px;
  padding: 25px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.85;
}

.legal-sections { display: grid; gap: 0; }

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

.legal-sections section:last-child { margin-bottom: 0; }

.legal-sections h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.5;
}

.legal-sections h3 {
  margin: 24px 0 10px;
  color: var(--green-deep);
  font-size: 16px;
}

.legal-sections p,
.legal-sections li,
.legal-table th,
.legal-table td {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.legal-sections p + p { margin-top: 12px; }
.legal-sections ul, .legal-sections ol { display: grid; gap: 9px; }

.legal-sections ul li { position: relative; padding-left: 17px; }

.legal-sections ul li::before {
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.legal-sections ol { padding-left: 21px; list-style: decimal; }

.legal-sections a {
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.legal-table { width: 100%; min-width: 700px; border-collapse: collapse; }

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

.legal-table th { color: var(--ink); background: var(--paper); font-weight: 750; }
.legal-table th:last-child, .legal-table td:last-child { border-right: 0; }
.legal-table tr:last-child td { border-bottom: 0; }

.legal-actions {
  margin: 26px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff !important;
  background: var(--green-deep);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none !important;
}

.legal-contact { padding: 20px 22px; border-radius: 14px; background: var(--paper); }
.legal-contact strong { display: block; margin-bottom: 5px; color: var(--ink); }

@media (max-width: 680px) {
  :root { --legal-content: calc(100% - 36px); }
  .legal-header { height: 68px; }
  .legal-header img { width: 100px; }
  .legal-main { padding: 76px 0 94px; }
  .legal-main h1 { font-size: 38px; }
  .legal-notice { margin: 34px 0 52px; padding: 20px; }
  .legal-sections section { padding-bottom: 38px; margin-bottom: 38px; }
  .legal-sections h2 { font-size: 19px; }
  .legal-sections p, .legal-sections li, .legal-table th, .legal-table td { font-size: 14px; }
}
