:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #f7fbfa;
  color: #123331;
  --surface: #ffffff;
  --border: #d9eeee;
  --muted: #5f7774;
  --primary: #0d9488;
  --accent: #f97316;
  --shadow-soft: 0 16px 40px rgba(15, 54, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(238, 250, 248, 0.78), rgba(247, 251, 250, 0) 360px),
    #f7fbfa;
}

a {
  color: inherit;
}

.legal-page {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.legal-nav,
.legal-card,
.legal-footer {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

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

.legal-nav div,
.brand-link,
.legal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.language-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f0fdfa;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.language-field:focus-within {
  outline: 3px solid #ccfbf1;
  outline-offset: 2px;
}

.language-field select {
  max-width: 140px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #123331;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 4px;
}

.language-field select:focus {
  outline: none;
}

.legal-nav a,
.legal-footer a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-footer a:hover {
  color: var(--primary);
}

.brand-link {
  color: #123331;
  font-weight: 700;
}

.brand-link img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.legal-card {
  margin-top: 16px;
  padding: clamp(24px, 5vw, 48px);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

h2 {
  margin-top: 28px;
  font-size: 1.18rem;
  line-height: 1.3;
}

p {
  color: var(--muted);
  line-height: 1.78;
}

.updated {
  margin-top: 10px;
  font-size: 0.9rem;
}

.legal-footer {
  justify-content: center;
  margin-top: 16px;
  padding: 16px;
}

@media (max-width: 640px) {
  .legal-page {
    padding: 12px;
  }

  .legal-nav {
    align-items: flex-start;
    flex-direction: column;
  }
}
