@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Inter:wght@400;500;600;700&display=swap");

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

:root {
  --wr-blue: #0064fa;
  --wr-link: #00ff8c;
  color-scheme: light;
  font-family: "Inter", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  background: var(--wr-blue);
  color: #ffffff;
}

body {
  font-family: "Inter", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  background: var(--wr-blue);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "DM Serif Text", Georgia, "Times New Roman", serif;
  font-weight: 400;
  /* DM Serif Text ships only at 400 — never let the browser fake a bold. */
  font-synthesis: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Shared clouds backdrop: dark clouds fade into the solid blue at the top
   of every page (matches the Figma "image 2" treatment). */
.landing::before,
.legal-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/clouds.webp") top center no-repeat;
  /* Natural 1440px size up to that width; beyond it, scale proportionally to
     fill the viewport so no blue gap shows past the clouds. */
  background-size: max(100%, 1440px) auto;
  z-index: 0;
  pointer-events: none;
}

.landing > *,
.legal-page > * {
  position: relative;
  z-index: 1;
}

/* ---------- Landing ---------- */

.landing {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--wr-blue);
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

.landing-header {
  padding: 36px 6vw 8px;
}

.landing-header img {
  height: 34px;
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px 6vw;
}

.hero-visual img {
  width: min(540px, 88vw);
  filter: drop-shadow(0 20px 60px rgba(4, 18, 53, 0.5));
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.5rem);
  line-height: 1.1;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
}

.store-badges a {
  display: block;
}

.store-badges img {
  height: 50px;
  width: 153px;
}

.landing-footer {
  width: 100%;
  padding: 40px 6vw 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  font-size: 0.75rem;
  line-height: 1.4;
}

.copyright {
  max-width: 720px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.footer-links a {
  color: var(--wr-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-divider {
  color: #ffffff;
  text-decoration: none;
}

/* ---------- Legal pages (Privacy / Terms) ---------- */

.legal-page {
  background: var(--wr-blue);
  color: #ffffff;
  min-height: 100vh;
  padding: 42px 6vw 80px;
  position: relative;
  overflow-x: hidden;
}

.legal-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 40px;
}

.legal-brand img {
  height: 22px;
}

.legal-icon {
  width: 74px;
  height: 74px;
}

.legal-icon img {
  width: 74px;
  height: 74px;
  /* Soft drop shadow under the floating app icon (the Figma hero shadow). */
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.4))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.legal-page h1 {
  font-size: clamp(1.9rem, 4vw, 2rem);
  line-height: 1.2;
}

.legal-content {
  max-width: 840px;
  margin: 0 auto;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.4;
}

.legal-updated {
  font-weight: 600;
  margin-bottom: 32px;
}

.legal-content p {
  margin-bottom: 24px;
}

.legal-content h2 {
  margin-top: 72px;
  margin-bottom: 24px;
  font-size: 1.375rem;
  line-height: 1.2;
  color: #ffffff;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
}

.legal-content ol {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content li:last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: var(--wr-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  .landing-header img {
    height: 30px;
  }
  .legal-content {
    font-size: 0.95rem;
  }
  .legal-content h2 {
    margin-top: 56px;
  }
}
