:root {
  --background: #ffedd5;
  --background-soft: #fff7f2;
  --primary: #ef4444;
  --accent: #ab3130;
  --ink: #121212;
  --muted: #765f55;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(171, 49, 48, 0.18);
  --shadow: 0 24px 70px rgba(103, 25, 31, 0.16);
  --radius: 28px;
  --font: ui-rounded, "SF Pro Rounded", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(circle at 12% 18%, rgba(239, 68, 68, 0.16), transparent 28%),
    linear-gradient(145deg, var(--background) 0%, var(--background-soft) 100%);
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 48px);
}

.app-root {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.legal-layout {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(22px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: calc(var(--radius) + 10px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: page-in 520ms ease both;
}

.hero::after {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  content: "";
}

.site-nav {
  position: absolute;
  top: clamp(18px, 3vw, 30px);
  left: clamp(18px, 4vw, 44px);
  right: clamp(18px, 4vw, 44px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-link,
.nav-link,
.primary-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
}

.brand-link {
  margin-right: auto;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
}

.nav-link {
  padding: 0 16px;
  color: var(--muted);
  font-weight: 700;
}

.nav-link[aria-current="page"] {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.72);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 620px;
  gap: 18px;
  padding-top: 58px;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  max-width: 660px;
  margin: 0;
  color: var(--accent);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 900;
  line-height: 0.96;
}

.lead-copy {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
}

.primary-link {
  padding: 0 20px;
  color: #ffffff;
  font-weight: 800;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(171, 49, 48, 0.24);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.primary-link:hover {
  transform: translateY(-2px);
  background: #8d2928;
}

.phone-visual {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 16px;
  width: min(100%, 340px);
  min-height: 470px;
  margin-left: auto;
  padding: 28px;
  border: 10px solid #1c1c1e;
  border-radius: 42px;
  background: linear-gradient(180deg, #fff7f2, #ffedd5);
  box-shadow: 0 30px 80px rgba(18, 18, 18, 0.22);
  transform: rotate(2deg);
  animation: phone-in 620ms ease 120ms both;
}

.screen-bar {
  width: 84px;
  height: 8px;
  justify-self: center;
  border-radius: 999px;
  background: #1c1c1e;
}

.screen-total {
  margin-top: 28px;
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 900;
}

.screen-row,
.screen-pill {
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 22px;
  color: var(--ink);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
}

.screen-row.short {
  width: 76%;
}

.screen-pill {
  align-self: end;
  justify-content: center;
  margin-top: auto;
  color: #ffffff;
  background: var(--primary);
}

.document-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.document-link,
.policy-document {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(103, 25, 31, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.document-link {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: clamp(22px, 4vw, 34px);
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.document-link:hover {
  transform: translateY(-3px);
  background: var(--surface-strong);
}

.document-title {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 900;
}

.document-copy {
  color: var(--muted);
  line-height: 1.6;
}

.policy-document {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 5vw, 56px);
}

.document-heading {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.section-heading {
  margin: 22px 0 0;
  color: var(--accent);
  font-size: 1.28rem;
}

.document-paragraph,
.loading-copy,
.error-copy {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.document-list {
  display: grid;
  gap: 8px;
  max-width: 820px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.64;
}

.error-copy {
  color: var(--primary);
  font-weight: 800;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(0deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(2deg);
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 12px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 84px 22px 26px;
  }

  .site-nav {
    top: 14px;
    left: 18px;
    right: 18px;
    flex-wrap: wrap;
  }

  .nav-link {
    padding: 0 12px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .page-title {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .phone-visual {
    width: min(100%, 310px);
    min-height: 390px;
    margin: 0 auto;
    padding: 22px;
    transform: rotate(0deg);
  }

  .document-links {
    grid-template-columns: 1fr;
  }
}
