:root {
  --bg: #f3efe6;
  --bg-accent: #d7e7dd;
  --surface: rgba(252, 250, 245, 0.78);
  --surface-strong: rgba(255, 253, 248, 0.92);
  --text: #18221d;
  --muted: #4f5e55;
  --line: rgba(24, 34, 29, 0.12);
  --shadow: 0 24px 70px rgba(33, 43, 38, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 231, 221, 0.95), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 222, 173, 0.55), transparent 25%),
    linear-gradient(160deg, var(--bg) 0%, #eef2ea 48%, #f6f2e9 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 34, 29, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 34, 29, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border: 1px solid rgba(24, 34, 29, 0.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--surface-strong), rgba(245, 251, 247, 0.78));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(149, 185, 165, 0.28), rgba(255, 214, 153, 0.22));
  filter: blur(4px);
}

.eyebrow,
.summary-hint,
.panel-note {
  font-family: "IBM Plex Mono", monospace;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.lead {
  margin: 28px 0 0;
  max-width: 34rem;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.notice {
  margin: 24px 0 0;
  max-width: 40rem;
  padding: 16px 18px;
  border-left: 4px solid #1d7a52;
  border-radius: 14px;
  background: rgba(29, 122, 82, 0.08);
  line-height: 1.55;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.legal-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.legal-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 700;
}

.legal-panel summary::-webkit-details-marker {
  display: none;
}

.summary-hint {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-body {
  padding: 0 22px 22px;
  color: #2f3a34;
  line-height: 1.7;
}

.panel-body h3,
.panel-body h4 {
  margin: 24px 0 10px;
  line-height: 1.25;
}

.panel-body h3:first-child,
.panel-body h4:first-child {
  margin-top: 0;
}

.panel-body p {
  margin: 0;
}

.panel-body p + p {
  margin-top: 16px;
}

.panel-body ul {
  margin: 10px 0 16px;
  padding-left: 20px;
}

.panel-body li + li {
  margin-top: 8px;
}

.panel-body a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .hero {
    padding: 28px 22px;
  }

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