:root {
  color-scheme: dark;
  --bg: #030303;
  --ink: #f7f7f7;
  --muted: #b5b5b5;
  --body-bg: #030303;
  --text-soft: #d7d7d7;
  --soft: #1b1b1b;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(10, 10, 10, 0.74);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --control-bg: rgba(0, 0, 0, 0.38);
  --control-hover: rgba(255, 255, 255, 0.08);
  --active-ink: #f7f7f7;
  --max: 1040px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #101010;
  --muted: #686868;
  --body-bg: #ffffff;
  --text-soft: #303030;
  --soft: #f2f2f2;
  --line: rgba(0, 0, 0, 0.14);
  --panel: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
  --control-bg: rgba(255, 255, 255, 0.62);
  --control-hover: rgba(0, 0, 0, 0.06);
  --active-ink: #101010;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  background: var(--body-bg);
  pointer-events: none;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button {
  font: inherit;
}

.cloud-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}

.site-header,
.site-footer,
.page-shell,
.legal-shell {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  text-decoration: none;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(38px, 1fr));
  gap: 2px;
  padding: 2px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--control-bg);
  backdrop-filter: blur(18px);
}

.language-switcher button,
.text-button,
.icon-button,
.back-link {
  min-height: 34px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.language-switcher button {
  min-height: 28px;
  padding: 0 10px;
  border-bottom: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 650;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--active-ink);
  border-bottom-color: currentColor;
}

.text-button,
.icon-button,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0 15px;
  background: var(--control-bg);
  backdrop-filter: blur(18px);
}

.icon-button {
  width: 34px;
  padding: 0;
  font-size: 0.96rem;
  line-height: 1;
}

.text-button:hover,
.icon-button:hover,
.back-link:hover,
.language-switcher button:hover {
  background: var(--control-hover);
  color: var(--active-ink);
}

.page-shell {
  padding: clamp(64px, 12vw, 142px) 0 70px;
}

.hero {
  max-width: 780px;
  min-height: clamp(380px, 58vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section h2,
.legal-eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.subtitle {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.55rem, 3.6vw, 3rem);
  line-height: 1.02;
  font-weight: 620;
}

.lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.section {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.reassurance p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2.25rem);
  line-height: 1.16;
  font-weight: 560;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.legal-shell {
  padding: 58px 0 84px;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.legal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-header {
  max-width: 780px;
  margin: 70px 0 52px;
}

.legal-header h1 {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: 0.96;
}

.app-privacy-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.app-privacy-title img {
  width: clamp(58px, 10vw, 88px);
  height: clamp(58px, 10vw, 88px);
  flex: 0 0 auto;
  object-fit: cover;
}

.legal-header p {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.legal-content {
  display: grid;
  gap: 28px;
  max-width: 820px;
}

.app-policy-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.app-policy-card {
  display: flex;
  align-items: flex-start;
  padding: 18px;
  background: var(--control-bg);
  text-decoration: none;
}

.app-policy-card:hover {
  background: var(--control-hover);
}

.app-policy-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-policy-heading img {
  width: 58px;
  height: 58px;
  object-fit: cover;
}

.app-policy-card strong,
.app-policy-card small {
  display: block;
}

.app-policy-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.legal-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.legal-section p,
.legal-section li {
  color: var(--text-soft);
  line-height: 1.7;
}

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

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

.markdown-content {
  display: block;
}

.markdown-content h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.inline-flag {
  display: inline-block;
  width: 1.2em;
  height: 0.8em;
  margin-left: 0.25em;
  vertical-align: -0.08em;
}

.markdown-content .legal-section {
  margin-top: 28px;
}

.placeholder-list strong {
  color: var(--ink);
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .page-shell,
  .legal-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    padding-top: 18px;
  }

  .header-actions {
    gap: 8px;
  }

  .page-shell {
    padding-top: 52px;
  }

  .hero {
    min-height: 520px;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .site-header {
    align-items: flex-start;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .subtitle {
    font-size: clamp(1.5rem, 7.5vw, 2.35rem);
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .cloud-canvas {
    opacity: 0.82;
  }
}
