/* MyBusiness hosted legal pages — dark “Legal Center” (aligned with in-app Terms & Privacy) */

:root {
  --page-bg: #0b1220;
  --surface: #111827;
  --surface-elevated: #161b22;
  --surface-muted: #1e293b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --primary: #3b82f6;
  --primary-soft: rgba(59, 130, 246, 0.14);
  --accent: #f97316;
  --hero-text: #f8fafc;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--page-bg);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Hero (gradient shell) --- */

.hero-shell {
  padding: 24px 20px 0;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 28px 44px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #0f766e 100%);
  color: var(--hero-text);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.45;
  pointer-events: none;
}

.hero::before {
  width: 200px;
  height: 200px;
  right: -40px;
  top: -50px;
  background: rgba(249, 115, 22, 0.25);
}

.hero::after {
  width: 240px;
  height: 240px;
  left: -60px;
  bottom: -80px;
  background: rgba(59, 130, 246, 0.2);
}

.hero > * {
  position: relative;
  z-index: 1;
}


.hero h1 {
  margin: 0 auto 12px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  max-width: 720px;
  font-weight: 800;
  color: #fff;
}

.hero p {
  margin: 0 auto;
  max-width: 720px;
  color: rgba(248, 250, 252, 0.86);
  font-size: 1rem;
  line-height: 1.65;
}


/* --- Main layout --- */

.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 72px;
}

/* Latest update (matches in-app notice card) */

.notice-card {
  padding: 24px 0;
}

.notice-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.notice-body {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.notice-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Jump links — horizontal scroll on narrow / row on wide */

.callout {
  padding: 24px 0;
}

.callout-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.callout-copy {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 14px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 2px 0;
  list-style: none;
}

.toc li {
  flex: 0 0 auto;
}

.toc a {
  display: inline-block;
  padding: 3px 0;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.toc a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Document shell */

.document-card {
  padding: 26px 0 0;
  margin-bottom: 18px;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.document-meta-copy {
  min-width: 200px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.document-date {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  padding: 3px 0;
  text-decoration: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.action-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.section-list {
  display: grid;
  gap: 0;
}

.section-card {
  padding: 24px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.section-card:first-child {
  padding-top: 8px;
}

.section-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.section-card h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.section-card p,
.section-card li {
  color: var(--text-secondary);
}

.section-card ul {
  padding-left: 20px;
  margin: 0;
}

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

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

.mini-card {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.08);
  border-left: 4px solid var(--primary);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.footer-card {
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-card nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-card a {
  text-decoration: none;
  font-weight: 700;
  color: var(--primary);
}

.footer-card a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .hero-shell {
    padding: 16px 14px 0;
  }

  .hero {
    border-radius: 20px;
    padding: 32px 18px 32px;
  }

  .layout {
    padding: 16px 14px 56px;
  }

  .document-card {
    padding: 22px 0 0;
  }

  .section-card {
    padding: 20px 0;
  }

  .section-card:first-child {
    padding-top: 6px;
  }

  .notice-card {
    padding: 20px 0;
  }

  .callout {
    padding: 20px 0;
  }
}
