/* ── Groute Legal Pages — Shared Styles ── */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display&display=swap');

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

:root {
  --green-950: #052e16;
  --green-900: #0b3d1e;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;

  --neutral-950: #0a0a0a;
  --neutral-800: #262626;
  --neutral-700: #404040;
  --neutral-600: #525252;
  --neutral-500: #737373;
  --neutral-400: #a3a3a3;
  --neutral-300: #d4d4d4;
  --neutral-200: #e5e5e5;
  --neutral-100: #f5f5f5;
  --neutral-50: #fafafa;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --page-max: 720px;
  --page-px: 24px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-800);
  background: var(--neutral-50);
  line-height: 1.7;
}

/* ── NAV ── */

.nav {
  background: var(--green-950);
  padding: 0 var(--page-px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--neutral-400);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

/* ── HERO BANNER ── */

.hero {
  background: var(--green-950);
  padding: 56px var(--page-px) 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--neutral-50);
  border-radius: 40px 40px 0 0;
}

.hero-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-400);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: white;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero h1 em {
  font-style: normal;
  color: var(--green-400);
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--neutral-400);
}

/* ── CONTENT ── */

.content {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 48px var(--page-px) 96px;
}

.content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-950);
  margin: 48px 0 16px;
  padding-top: 8px;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin: 28px 0 10px;
}

.content p {
  margin-bottom: 14px;
  color: var(--neutral-700);
  font-size: 0.95rem;
}

.content ul,
.content ol {
  margin: 0 0 14px 24px;
  color: var(--neutral-700);
  font-size: 0.95rem;
}

.content li {
  margin-bottom: 6px;
}

.content li::marker {
  color: var(--green-600);
}

.content a {
  color: var(--green-700);
  text-decoration: underline;
  text-decoration-color: var(--green-300);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.content a:hover {
  text-decoration-color: var(--green-700);
}

.content strong {
  font-weight: 600;
  color: var(--neutral-800);
}

/* Callout box */
.callout {
  background: var(--green-50);
  border-left: 3px solid var(--green-500);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.callout p {
  color: var(--green-900);
  margin-bottom: 0;
}

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

/* Steps list for delete-account */
.steps {
  counter-reset: step;
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 20px;
  min-height: 36px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--green-950);
  color: var(--green-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Table of contents */
.toc {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc-title {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neutral-500);
  margin-bottom: 12px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  list-style: decimal;
}

.toc li {
  margin-bottom: 4px;
}

.toc a {
  color: var(--green-800);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.toc a:hover {
  text-decoration: underline;
}

/* ── FOOTER ── */

.footer {
  background: var(--green-950);
  padding: 40px var(--page-px);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--neutral-50);
  border-radius: 0 0 40px 40px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: white;
}

.footer-copy {
  color: var(--neutral-500);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--neutral-400);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

/* ── RESPONSIVE ── */

@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .hero {
    padding: 40px var(--page-px) 64px;
  }

  .content {
    padding: 36px var(--page-px) 72px;
  }

  .content h2 {
    font-size: 1.3rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .toc {
    padding: 20px;
  }
}
