/**
 * Grove Web Digital — Premium Legal Pages (Privacy Policy)
 */

.gw-lp {
  --gw-lp-heading: var(--color-text-heading, var(--color-text-heading));
  --gw-lp-body: var(--color-text-body, var(--color-text-body));
  --gw-lp-green: var(--color-button-primary-bg, var(--color-button-primary-bg));
  --gw-lp-surface: var(--color-surface-raised, var(--surface-elevated));
  --gw-lp-muted: color-mix(in srgb, var(--gw-lp-body) 62%, transparent);
  --gw-lp-border: color-mix(in srgb, var(--gw-lp-heading) 10%, transparent);
  background: var(--color-surface-body, var(--color-surface-body));
  color: var(--gw-lp-body);
}

.dark .gw-lp {
  --gw-lp-heading: hsl(var(--foreground));
  --gw-lp-body: hsl(var(--foreground));
  --gw-lp-surface: hsl(var(--card));
  --gw-lp-muted: hsl(var(--muted-foreground));
  --gw-lp-border: hsl(var(--border));
  background: hsl(var(--background));
}

.gw-lp-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: color-mix(in srgb, var(--gw-lp-heading) 8%, transparent);
}

.gw-lp-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-fill), var(--gw-lp-green));
  transition: width 0.12s ease-out;
}

.gw-lp-hero {
  padding: clamp(3rem, 8vw, 5rem) 1rem clamp(2rem, 5vw, 3rem);
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, color-mix(in srgb, var(--gw-lp-heading) 9%, transparent), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 20%, color-mix(in srgb, var(--gw-lp-green) 8%, transparent), transparent 50%),
    var(--color-surface-body, var(--color-surface-body));
}

.dark .gw-lp-hero {
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, color-mix(in srgb, var(--gw-lp-green) 12%, transparent), transparent 55%),
    hsl(var(--background));
}

.gw-lp-hero__inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.gw-lp-badge {
  display: inline-flex;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gw-lp-heading);
  background: color-mix(in srgb, var(--gw-lp-surface) 92%, transparent);
  border: 1px solid var(--gw-lp-border);
  margin-bottom: 1.25rem;
}

.gw-lp-hero__title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--gw-lp-heading);
  margin: 0;
}

.gw-lp-hero__desc {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--gw-lp-muted);
}

.gw-lp-hero__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--gw-lp-muted);
}

.gw-lp-hero__dates strong {
  color: var(--gw-lp-heading);
}

.gw-lp-disclaimer {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gw-lp-muted);
  background: color-mix(in srgb, var(--gw-lp-heading) 5%, transparent);
  border: 1px solid var(--gw-lp-border);
}

.gw-lp-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.gw-lp-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .gw-lp-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
  }
}

.gw-lp-toc {
  position: sticky;
  top: 5.5rem;
  padding: 1.25rem;
  border-radius: 1.15rem;
  background: color-mix(in srgb, var(--gw-lp-surface) 94%, transparent);
  border: 1px solid var(--gw-lp-border);
  backdrop-filter: blur(12px);
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
}

.gw-lp-toc__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gw-lp-muted);
  margin: 0 0 0.85rem;
}

.gw-lp-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gw-lp-toc a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gw-lp-body);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.gw-lp-toc a.is-active {
  color: var(--gw-lp-green);
  border-left-color: var(--gw-lp-green);
  font-weight: 700;
}

.gw-lp-toc a:hover {
  color: var(--gw-lp-green);
}

.gw-lp-toc a[data-level="2"] {
  padding-left: 1.25rem;
  font-size: 0.75rem;
}

.gw-lp-prose {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 1.5rem;
  background: var(--gw-lp-surface);
  border: 1px solid var(--gw-lp-border);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--gw-lp-heading) 5%, transparent);
}

.gw-lp-section {
  scroll-margin-top: 5.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gw-lp-border);
}

.gw-lp-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.gw-lp-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gw-lp-section h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--gw-lp-heading);
  margin: 0;
  line-height: 1.25;
}

.gw-lp-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gw-lp-heading);
  margin: 1.5rem 0 0.65rem;
}

.gw-lp-section p,
.gw-lp-section li {
  line-height: 1.75;
  color: var(--gw-lp-muted);
  font-size: 0.9375rem;
}

.gw-lp-section p {
  margin: 0 0 1rem;
}

.gw-lp-section ul,
.gw-lp-section ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.gw-lp-section a {
  color: var(--gw-lp-green);
  font-weight: 600;
  text-decoration: none;
}

.gw-lp-section a:hover {
  text-decoration: underline;
}

.gw-lp-copy-link {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid var(--gw-lp-border);
  background: transparent;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gw-lp-muted);
  cursor: pointer;
}

.gw-lp-copy-link:hover {
  color: var(--gw-lp-green);
  border-color: color-mix(in srgb, var(--gw-lp-green) 30%, transparent);
}

.gw-lp-cards {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  margin: 1rem 0;
}

.gw-lp-card {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--gw-lp-heading) 4%, transparent);
  border: 1px solid var(--gw-lp-border);
}

.gw-lp-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gw-lp-heading);
}

.gw-lp-card p {
  margin: 0;
  font-size: 0.8125rem;
}

.gw-lp-faq {
  display: grid;
  gap: 0.65rem;
}

.gw-lp-faq details {
  border-radius: 1rem;
  border: 1px solid var(--gw-lp-border);
  padding: 0.2rem 1.1rem;
  background: color-mix(in srgb, var(--gw-lp-surface) 96%, transparent);
}

.gw-lp-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gw-lp-heading);
  padding: 0.85rem 0;
  list-style: none;
}

.gw-lp-faq summary::-webkit-details-marker {
  display: none;
}

.gw-lp-contact-box {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gw-lp-heading) 6%, transparent), color-mix(in srgb, var(--gw-lp-green) 6%, transparent));
  border: 1px solid var(--gw-lp-border);
}

@media (max-width: 1023px) {
  .gw-lp-toc {
    position: static;
    max-height: none;
  }
}

@media print {
  .gw-lp-progress,
  .gw-lp-toc,
  .gw-lp-copy-link,
  .gw-nav-wrap,
  .gw-footer {
    display: none !important;
  }

  .gw-lp-prose {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .gw-lp-section {
    break-inside: avoid;
  }
}

/* Third-party services (cookie policy) */
.gw-lp-services {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

.gw-lp-service {
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--gw-lp-border);
  background: color-mix(in srgb, var(--gw-lp-surface, var(--surface-elevated)) 94%, transparent);
}

.gw-lp-service__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.gw-lp-service__head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--gw-lp-heading);
}

.gw-lp-service__meta {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: var(--gw-lp-muted);
}

.gw-lp-service__status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gw-lp-service__status--active {
  background: color-mix(in srgb, var(--gw-lp-green) 18%, transparent);
  color: var(--gw-lp-green);
}

.gw-lp-service__status--optional {
  background: color-mix(in srgb, var(--gw-lp-heading) 10%, transparent);
  color: var(--gw-lp-heading);
}

.gw-lp-service__status--future {
  background: color-mix(in srgb, var(--gw-lp-muted) 15%, transparent);
  color: var(--gw-lp-muted);
}

/* Cookie consent preview (policy page / future site-wide) */
.gw-lp-consent-preview {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px dashed color-mix(in srgb, var(--gw-lp-heading) 18%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gw-lp-heading) 4%, transparent), color-mix(in srgb, var(--gw-lp-green) 4%, transparent));
}

.gw-lp-consent-banner-demo {
  margin-top: 0.85rem;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--gw-lp-border);
  background: var(--gw-lp-surface, var(--surface-elevated));
}

.gw-lp-consent-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.gw-lp-consent-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--gw-lp-border);
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.gw-lp-consent-btn--primary {
  background: var(--gw-lp-green);
  color: #ffffff;
  border-color: transparent;
}

.gw-lp-consent-panel {
  margin-top: 1rem;
  padding: 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--gw-lp-border);
  background: var(--gw-lp-surface, var(--surface-elevated));
}

.gw-lp-consent-panel label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.875rem;
}

.gw-lp-consent-panel label strong {
  display: block;
  color: var(--gw-lp-heading);
}

.gw-lp-consent-panel label span {
  color: var(--gw-lp-muted);
  font-size: 0.8125rem;
}
