:root {
  --surface: #ffffff;
  --surface-soft: #e6f0f3;
  --text: #181818;
  --text-soft: #666666;
  --border: rgba(24, 24, 24, 0.08);
  --shadow: 0 24px 50px rgba(251, 140, 0, 0.14);
  --orange: #fb8c00;
  --orange-soft: #ffe0b2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 140, 0, 0.18), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(38, 166, 154, 0.14), transparent 28%),
    linear-gradient(180deg, #fffaf3 0%, #f7fbfc 52%, #ffffff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 24, 24, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 24, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 72%);
}

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

.page-shell {
  margin: 0 auto;
  padding: 28px 0 40px;
}

.page-shell--home {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  padding-bottom: 56px;
}

.page-shell--narrow {
  width: min(760px, calc(100% - 32px));
}

.page-shell--legal {
  width: min(920px, calc(100% - 32px));
}

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

.page-topbar {
  margin-bottom: 28px;
}

.page-topbar--hero {
  margin-bottom: 44px;
}

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

.site-nav {
  display: flex;
  flex: 0 1 auto;
  justify-content: center;
  min-width: 0;
}

.site-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(24, 24, 24, 0.04);
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.site-nav-link:hover {
  transform: translateY(-1px);
  background: rgba(251, 140, 0, 0.1);
  color: var(--text);
}

.site-nav-link.is-current {
  background: linear-gradient(180deg, #ffa137 0%, var(--orange) 100%);
  color: white;
  box-shadow: 0 10px 18px rgba(251, 140, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fffdfa 0%, #fff2e1 100%);
  border: 1px solid rgba(251, 140, 0, 0.18);
  box-shadow: 0 14px 24px rgba(251, 140, 0, 0.14);
}

.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
}

.lang-button {
  min-width: 44px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-button.is-active {
  background: linear-gradient(180deg, #ffa137 0%, var(--orange) 100%);
  color: white;
  box-shadow: 0 10px 18px rgba(251, 140, 0, 0.2);
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

.section-title--center {
  text-align: center;
}

.section-copy {
  margin: 0 0 18px;
  line-height: 1.75;
  color: var(--text-soft);
}

.section-list {
  margin: 0;
  padding-left: 22px;
  line-height: 1.8;
  color: var(--text-soft);
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: var(--orange-soft);
  color: #8a4a00;
  font-size: 0.92rem;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.actions--center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, #ffa137 0%, var(--orange) 100%);
  color: white;
  box-shadow: 0 16px 26px rgba(251, 140, 0, 0.22);
}

.button-danger {
  background: linear-gradient(180deg, #ef7a67 0%, #d8584d 100%);
  color: white;
  box-shadow: 0 16px 26px rgba(216, 88, 77, 0.24);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.button-large {
  min-height: 54px;
  padding: 0 22px;
}

.card {
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.logo-wrap {
  width: 112px;
  height: 112px;
  margin: 0 auto 22px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fffdfa 0%, #fff2e1 100%);
  border: 1px solid rgba(251, 140, 0, 0.14);
  box-shadow: 0 18px 28px rgba(251, 140, 0, 0.08);
}

.logo-wrap img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(251, 140, 0, 0.14));
}

.centered-card {
  text-align: center;
}

.email-box {
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--orange-soft);
  color: #8a4a00;
  font-weight: 800;
  text-align: center;
  word-break: break-word;
}

.action-card {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--surface-soft);
}

.action-card p {
  margin-bottom: 14px;
}

.content-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form-label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
}

.required-mark {
  margin-left: 6px;
  color: var(--orange);
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.field-textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.6;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
  border-radius: 6px;
}

.note {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--orange-soft);
  color: #8a4a00;
  line-height: 1.7;
}

.inline-link {
  color: var(--orange);
  font-weight: 700;
}

.legal-hero-card,
.legal-content-card {
  padding: 34px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.legal-content-card {
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.legal-hero-card .section-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.legal-stack > section + section {
  margin-top: 28px;
}

.legal-intro {
  margin: 0;
  max-width: 56rem;
  line-height: 1.8;
  color: var(--text-soft);
}

.legal-meta-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(251, 140, 0, 0.12), rgba(255, 255, 255, 0.92));
  color: #8a4a00;
  font-weight: 700;
}

.legal-official-note {
  margin: 14px 0 0;
  max-width: 48rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.legal-content-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.legal-content-card p {
  margin: 0 0 16px;
  line-height: 1.8;
  color: var(--text-soft);
}

.legal-content-card ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-soft);
  line-height: 1.8;
}

.legal-content-card li + li {
  margin-top: 8px;
}

.legal-links {
  margin-top: 32px;
}

.legal-links-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.legal-link {
  color: rgba(24, 24, 24, 0.52);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.legal-link:hover {
  color: rgba(24, 24, 24, 0.78);
}

.legal-links--footer {
  margin-top: 32px;
}

.page-shell--home .legal-links--footer {
  margin-top: 28px;
}

@media (max-width: 960px) {
  .topbar {
    flex-wrap: wrap;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
    justify-content: center;
  }

  .site-nav-links {
    width: max-content;
    max-width: 100%;
    justify-content: center;
    margin: 0 auto;
    border-radius: 20px;
  }

  .topbar-actions {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .page-shell--narrow {
    width: min(100% - 20px, 760px);
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .card {
    padding: 22px;
    border-radius: 22px;
  }

  .site-nav-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .site-nav-links {
    padding: 4px;
    border-radius: 18px;
  }
}

@media (max-width: 720px) {
  .page-shell--home {
    width: min(100% - 20px, 1160px);
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .page-shell--legal {
    width: min(100% - 20px, 920px);
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .page-topbar--hero {
    margin-bottom: 24px;
  }

  .legal-hero-card,
  .legal-content-card {
    padding: 22px;
    border-radius: 24px;
  }

  .legal-hero-card .section-title {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }
}
