*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #2E6B3E;
  --green-mid:   #3E8A52;
  --green-faint: #EAF3EC;
  --text:        #111827;
  --muted:       #6B7280;
  --border:      #E5E7EB;
  --bg:          #F9FAF8;
  --white:       #FFFFFF;
  --radius:      10px;
}

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav__back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.nav__back:hover { color: var(--text); text-decoration: none; }

/* ===== CONTENT ===== */
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal-wrap h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.last-updated {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 48px;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.legal-body section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.legal-body section p,
.legal-body section li {
  font-size: .95rem;
  color: #374151;
}

.legal-body ul {
  padding-left: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: disc;
}

.legal-body p + p { margin-top: 10px; }

/* ===== COOKIE CARDS ===== */
.cookie-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 8px;
}
.cookie-card + .cookie-card { margin-top: 10px; }

.cookie-card strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 4px;
}

.cookie-card p {
  font-size: .875rem !important;
  color: var(--muted) !important;
}

.cookie-card code {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .8rem;
  font-family: monospace;
}

/* ===== RESET BTN ===== */
.reset-btn {
  margin-top: 12px;
  padding: 10px 20px;
  background: var(--green);
  color: var(--white);
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s;
}
.reset-btn:hover { background: var(--green-mid); }

/* ===== FOOTER ===== */
.legal-footer {
  border-top: 1px solid var(--border);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: #9CA3AF;
}

.legal-footer__links {
  display: flex;
  gap: 20px;
}

.legal-footer__links a {
  color: #9CA3AF;
  font-size: .8rem;
}
.legal-footer__links a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 600px) {
  .nav { padding: 0 20px; }
  .legal-wrap { padding: 36px 20px 60px; }
  .legal-footer { flex-direction: column; gap: 10px; text-align: center; padding: 20px; }
  .legal-footer__links { flex-wrap: wrap; justify-content: center; gap: 12px; }
}
