:root {
  --bg: #f5f8f7;
  --card: #ffffff;
  --line: #d9e3e0;
  --text: #052e2b;
  --muted: #4b6460;
  --brand: #047857;
  --brand-dark: #064e3b;
  --accent: #0891b2;
  --highlight: #dcfce7;
  --shadow: 0 18px 44px rgba(7, 29, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(134, 239, 172, 0.62) 0%, rgba(245, 248, 247, 0) 38%),
    radial-gradient(circle at 100% 0%, rgba(125, 211, 252, 0.42) 0%, rgba(245, 248, 247, 0) 32%),
    var(--bg);
}

a {
  color: inherit;
}

.legal-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  backdrop-filter: blur(10px);
  background: rgba(245, 248, 247, 0.88);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.brand strong {
  color: var(--brand);
}

.brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #a7f3d0;
  background: #fff;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-nav a {
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(140deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  color: var(--text);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  padding-top: 22px;
}

.hero-card,
.summary-card,
.legal-article,
.legal-section,
.consent-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 900;
}

.hero-card h1 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.summary-card {
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: start;
  background:
    linear-gradient(160deg, rgba(4, 120, 87, 0.04), rgba(8, 145, 178, 0.1)),
    var(--card);
}

.summary-card h2,
.consent-card h2 {
  margin: 0;
  font-size: 22px;
}

.summary-card p,
.consent-card p,
.legal-section p,
.legal-section li,
.legal-section td,
.legal-section th {
  color: var(--muted);
  line-height: 1.72;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.summary-list span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--highlight);
  color: var(--brand-dark);
  font-weight: 900;
}

.summary-box {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 16px;
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
}

.legal-article {
  margin-top: 18px;
  padding: 14px;
}

.legal-grid {
  display: grid;
  gap: 14px;
}

.legal-section {
  padding: 24px;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
}

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

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

.legal-section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-section li strong,
.legal-section p strong {
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

th {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f8fbfa;
}

.consent-card {
  margin-top: 18px;
  padding: 24px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbfa;
}

.consent-check input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.consent-check span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.status {
  min-height: 22px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
}

.status.error {
  color: #b91c1c;
}

.status.success {
  color: var(--brand-dark);
}

.hidden {
  display: none;
}

.footer {
  padding-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 12px 14px;
  }

  .legal-shell {
    padding: 0 14px 36px;
  }

  .topbar-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .hero-card,
  .summary-card,
  .legal-section,
  .consent-card {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-actions,
  .consent-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
