/**
 * Legal pages (Privacy / Terms) — matches about & pricing chrome.
 */

body.static-page.legal-modern {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: #18181b;
  -webkit-font-smoothing: antialiased;
}

.legal-modern .page-wrap {
  padding-bottom: 0;
}

.legal-modern .landing-page,
.legal-modern .container,
.legal-modern .main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

/* Neutralize global style.css landing-page rules */
.legal-modern .landing-page h2 {
  color: inherit;
  font-size: inherit;
  margin: 0;
  font-weight: inherit;
  letter-spacing: inherit;
}

.legal-modern .landing-page h3 {
  color: inherit;
  font-size: inherit;
  margin: 0;
  font-weight: inherit;
}

.legal-modern .landing-page p {
  margin-bottom: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.legal-modern .landing-page ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.legal-modern .landing-page li {
  margin: 0;
  padding: 0;
  position: static;
}

.legal-modern .landing-page li::before {
  content: none;
  display: none;
}

.legal-modern .section-header h2::after {
  display: none;
}

/* ── Hero ───────────────────────────────────────────────────── */
.legal-modern .privacy-hero {
  text-align: center;
  padding: clamp(40px, 7vw, 72px) 0 clamp(32px, 5vw, 48px);
  background: transparent;
  border-radius: 0;
  margin: 0 0 8px;
}

.legal-modern .privacy-hero .hero-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ecfdf5, #dcfce7);
  color: #15803d;
  font-size: 22px;
  animation: none;
}

.legal-modern .privacy-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: #09090b;
  margin: 0 0 12px;
}

.legal-modern .privacy-hero .hero-subtitle {
  font-size: 15px;
  color: #71717a;
  margin: 0 auto 24px;
  max-width: 520px;
}

.legal-modern .privacy-hero .hero-cta {
  margin-bottom: 28px;
}

.legal-modern .privacy-hero .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #16a34a, #65a30d);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
  border: none;
  transition: box-shadow 0.15s, transform 0.15s;
}

.legal-modern .privacy-hero .cta-button:hover {
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
  transform: translateY(-1px);
}

.legal-modern .privacy-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.legal-modern .privacy-stat {
  background: #fafafa;
  border: 1px solid #f4f4f5;
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.legal-modern .privacy-stat:hover {
  border-color: #bbf7d0;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.1);
  transform: translateY(-2px);
}

.legal-modern .privacy-stat i {
  font-size: 18px;
  color: #16a34a;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ecfdf5;
}

.legal-modern .privacy-stat h4 {
  color: #09090b;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.legal-modern .privacy-stat p {
  color: #71717a;
  margin: 0;
  font-size: 13px;
}

@media (max-width: 640px) {
  .legal-modern .privacy-stats {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

/* ── Sections ───────────────────────────────────────────────── */
.legal-modern .info-section {
  margin: 0 0 24px;
  padding: clamp(28px, 4vw, 44px) clamp(18px, 3vw, 28px);
  border-radius: 24px;
  background: #fafafa;
  border: 1px solid #f4f4f5;
  box-shadow: none;
}

.legal-modern .info-section .section-header {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
    position: static;
}

.legal-modern .info-section .section-header:has(+ .section-description) {
  margin-bottom: 4px;
  gap: 6px;
}

.legal-modern .info-section .section-header > i {
  display: none !important;
}

/* Text-only sections (no card grids): show header icon above title */
.legal-modern .info-section:not(:has(.collection-cards,
    .usage-grid,
    .security-grid,
    .sharing-grid,
    .rights-grid,
    .breach-grid,
    .compliance-grid,
    .cookie-grid,
    .retention-grid,
    .processing-grid,
    .third-party-grid)) .section-header > i {
      display: inline-flex !important;
  align-items: center;
    justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0 2px;
    padding: 0;
  border-radius: 14px;
  background: #ecfdf5;
  background-image: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #15803d;
  color: #15803d;
  font-size: 18px;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900;
    font-style: normal;
    line-height: 1;
    filter: none;
    animation: none;
    box-shadow: none;
}

.legal-modern .info-section .section-header h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #09090b;
  margin: 0;
}

/* Beat .landing-page p { margin-bottom: 0 } so subtitle clears cards */
.legal-modern .landing-page .section-description,
.legal-modern .info-section > .section-description {
  text-align: center;
  font-size: 14px;
  color: #71717a;
  margin: 0 auto 28px;
  max-width: 640px;
  line-height: 1.55;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.legal-modern .section-description:hover {
  transform: none;
  box-shadow: none;
  background: none;
}

.legal-modern .section-conclusion {
  text-align: center;
  font-size: 13px;
  color: #a1a1aa;
  margin: 20px auto 0;
  max-width: 560px;
  line-height: 1.5;
}

/* ── Card grids (shared pattern) ────────────────────────────── */
.legal-modern .collection-cards,
.legal-modern .usage-grid,
.legal-modern .security-grid,
.legal-modern .sharing-grid,
.legal-modern .rights-grid,
.legal-modern .breach-grid,
.legal-modern .compliance-grid,
.legal-modern .cookie-grid,
.legal-modern .retention-grid,
.legal-modern .processing-grid,
.legal-modern .third-party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 280px));
  justify-content: center;
  gap: 14px;
}

.legal-modern .collection-card,
.legal-modern .usage-item,
.legal-modern .security-item,
.legal-modern .sharing-item,
.legal-modern .right-item,
.legal-modern .breach-item,
.legal-modern .compliance-item,
.legal-modern .cookie-item,
.legal-modern .retention-item,
.legal-modern .processing-item,
.legal-modern .third-party-item {
  background: #fff;
  border: 1.5px solid #f4f4f5;
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  min-width: 0;
}

.legal-modern .collection-card:hover,
.legal-modern .usage-item:hover,
.legal-modern .security-item:hover,
.legal-modern .sharing-item:hover,
.legal-modern .right-item:hover,
.legal-modern .breach-item:hover,
.legal-modern .compliance-item:hover,
.legal-modern .cookie-item:hover,
.legal-modern .retention-item:hover,
.legal-modern .processing-item:hover,
.legal-modern .third-party-item:hover {
  border-color: #bbf7d0;
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.1);
  transform: translateY(-2px);
}

.legal-modern .collection-card > i,
.legal-modern .usage-item > i,
.legal-modern .security-item > i,
.legal-modern .sharing-item > i,
.legal-modern .right-item > i,
.legal-modern .breach-item > i,
.legal-modern .compliance-item > i,
.legal-modern .cookie-item > i,
.legal-modern .retention-item > i,
.legal-modern .processing-item > i,
.legal-modern .third-party-item > i {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ecfdf5, #dcfce7);
  color: #15803d;
  font-size: 18px;
  margin-bottom: 12px;
}

.legal-modern .collection-card h4,
.legal-modern .usage-item h4,
.legal-modern .security-item h4,
.legal-modern .sharing-item h4,
.legal-modern .right-item h4,
.legal-modern .breach-item h4,
.legal-modern .compliance-item h4,
.legal-modern .cookie-item h4,
.legal-modern .retention-item h4,
.legal-modern .processing-item h4,
.legal-modern .third-party-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: #09090b;
  margin: 0 0 8px;
}

.legal-modern .collection-card p,
.legal-modern .usage-item p,
.legal-modern .security-item p,
.legal-modern .sharing-item p,
.legal-modern .right-item p,
.legal-modern .breach-item p,
.legal-modern .compliance-item p,
.legal-modern .cookie-item p,
.legal-modern .retention-item p,
.legal-modern .processing-item p,
.legal-modern .third-party-item p {
  font-size: 13px;
  color: #71717a;
  margin: 0;
  line-height: 1.5;
}

.legal-modern .collection-card ul,
.legal-modern .usage-item ul,
.legal-modern .security-item ul,
.legal-modern .sharing-item ul,
.legal-modern .right-item ul,
.legal-modern .breach-item ul,
.legal-modern .compliance-item ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.legal-modern .collection-card li,
.legal-modern .usage-item li,
.legal-modern .security-item li,
.legal-modern .sharing-item li,
.legal-modern .right-item li,
.legal-modern .breach-item li,
.legal-modern .compliance-item li {
  font-size: 13px;
  color: #52525b;
  line-height: 1.5;
  margin-bottom: 8px;
  padding-left: 0;
}

.legal-modern .collection-card li strong,
.legal-modern .usage-item li strong {
  color: #18181b;
}

.legal-modern .collection-cards.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .legal-modern .collection-cards.grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Prose inside sections */
.legal-modern .info-section > p:not(.section-description):not(.section-conclusion),
.legal-modern .info-section > ul,
.legal-modern .info-section > ol {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
  color: #52525b;
  line-height: 1.6;
}

.legal-modern .info-section > ul,
.legal-modern .info-section > ol {
  padding-left: 1.25rem;
}

.legal-modern .info-section a {
  color: #15803d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Contact block ──────────────────────────────────────────── */
.legal-modern .contact-privacy {
  text-align: center;
  margin: 36px 0 8px;
  padding: clamp(28px, 4vw, 40px) clamp(18px, 3vw, 28px);
  border-radius: 24px;
  background: #fafafa;
  border: 1px solid #f4f4f5;
}

.legal-modern .contact-privacy h3 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #09090b;
  margin: 0 0 8px;
}

.legal-modern .contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.legal-modern .contact-info-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #f4f4f5;
  border-radius: 14px;
  padding: 12px 16px;
  text-decoration: none;
  color: #3f3f46;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.legal-modern .contact-info-item:hover {
  border-color: #bbf7d0;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.1);
}

.legal-modern .contact-info-item i {
  color: #16a34a;
}

.legal-modern .contact-info-item p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

/* ── Alert ──────────────────────────────────────────────────── */
.legal-modern .alert {
  max-width: 720px;
  margin: 28px auto 8px;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #3f3f46;
}

.legal-modern .alert-info {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.legal-modern .alert p {
  margin: 0;
}

@media (max-width: 768px) {
  body.static-page.legal-modern .usage-grid,
  body.static-page.legal-modern .collection-cards,
  body.static-page.legal-modern .security-grid,
  body.static-page.legal-modern .sharing-grid,
  body.static-page.legal-modern .rights-grid,
  body.static-page.legal-modern .breach-grid,
  body.static-page.legal-modern .compliance-grid,
  body.static-page.legal-modern .cookie-grid,
  body.static-page.legal-modern .retention-grid,
  body.static-page.legal-modern .processing-grid,
  body.static-page.legal-modern .third-party-grid {
    grid-template-columns: 1fr;
  }
}
