:root {
  color-scheme: dark;
  --bg: #0b1320;
  --bg-accent: #0f1b2d;
  --accent: #5ba7ff;
  --accent-soft: rgba(91, 167, 255, 0.2);
  --text: #f2f6ff;
  --muted: #c6d3e6;
  --card: #f5f8ff;
  --card-text: #0f1724;
  --shadow: 0 20px 50px rgba(5, 16, 32, 0.28);
}

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

body {
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top, #1a2c48, var(--bg));
  color: var(--text);
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("pexels-daniel-ledesma-1524324436-33183295.jpg") center/cover
    no-repeat;
  filter: blur(4px) brightness(0.85);
  transform: scale(1.02);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 19, 32, 0.55),
    rgba(11, 19, 32, 0.85)
  );
  z-index: -1;
}

body.privacy-page {
  background: #0b1320;
  color: #1f2937;
  position: relative;
}

body.privacy-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("pexels-enrique72-9069575.jpg") center/cover no-repeat;
  filter: blur(6px) brightness(0.75);
  transform: scale(1.03);
  z-index: -2;
}

body.privacy-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 19, 32, 0.5), rgba(11, 19, 32, 0.85));
  z-index: -1;
}

.page {
  min-height: 100vh;
  padding: 56px 6vw 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 48px;
  position: relative;
}

.hero {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0 6px;
}

.brand-title {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-title.centered {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  animation: logoFloat 5s ease-in-out infinite;
}

.logo-image {
  width: clamp(190px, 30vw, 320px);
  height: auto;
  display: block;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  max-width: 760px;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

.highlight {
  position: relative;
  display: inline-block;
  color: var(--text);
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.12em;
  height: 0.35em;
  width: 100%;
  background: var(--accent);
  z-index: -1;
  opacity: 0.7;
  border-radius: 8px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
}

.form-section {
  display: flex;
  justify-content: flex-end;
}

.form-card {
  width: min(460px, 100%);
  background: var(--card);
  color: var(--card-text);
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.form-intro {
  color: #36413e;
  margin-bottom: 18px;
}

.optional {
  font-weight: 500;
  color: #7a8896;
  font-size: 0.85em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 8px;
  color: #26312e;
}

.label-row {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

input,
select {
  border: 1px solid #d9e2df;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
  color: var(--card-text);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

select {
  padding-right: 54px;
}

input:focus,
select:focus {
  outline: none;
  border-color: #c3ccd8;
  box-shadow: 0 0 0 3px rgba(180, 188, 200, 0.25);
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.privacy-link {
  color: #1b2432;
  text-decoration: underline;
}

.privacy-link:hover {
  color: #0f1724;
}

.cta {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: #1b2432;
  color: #f5f7fb;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 16, 28, 0.25);
}

.form-messages {
  min-height: 24px;
}

.success {
  color: #1d7b52;
  font-weight: 600;
}

.error {
  color: #b0312f;
  font-weight: 600;
}

.footer {
  padding: 10px 6vw 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: rgba(8, 14, 24, 0.4);
}

body::-webkit-scrollbar-thumb {
  background: rgba(91, 167, 255, 0.35);
  border-radius: 999px;
}

body {
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 167, 255, 0.4) rgba(8, 14, 24, 0.4);
}


.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #0f1b2d;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(91, 167, 255, 0.3);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 320px;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: rgba(91, 167, 255, 0.5);
}

.toast.error {
  border-color: rgba(224, 82, 82, 0.5);
}

.privacy-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 6vw 64px;
}

.privacy-header {
  text-align: center;
  margin-bottom: 22px;
}

.privacy-brand {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c6d3e6;
  margin: 0 0 8px;
}

.privacy-title {
  position: relative;
  display: block;
  color: #f8fafc;
  min-height: 90px;
}

.privacy-logo {
  position: absolute;
  top: -13px;
  left: 24px;
  width: 120px;
  height: auto;
  z-index: 5;
}


.privacy-title h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  color: #f8fafc;
  margin: 0;
  text-align: center;
  display: inline-block;
  position: relative;
}

.privacy-title h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.12em;
  height: 0.35em;
  width: 100%;
  background: var(--accent);
  z-index: -1;
  opacity: 0.7;
  border-radius: 8px;
}

.privacy-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 32px 36px;
  box-shadow: 0 18px 40px rgba(15, 23, 36, 0.2);
}

.privacy-card h2 {
  font-size: 1.15rem;
  color: #0f1724;
  margin: 18px 0 8px;
}

.privacy-card h3 {
  font-size: 1.02rem;
  color: #334155;
  margin: 14px 0 6px;
}

.privacy-card p,
.privacy-card li {
  color: #1f2937;
  font-size: 0.98rem;
  line-height: 1.5;
}

.privacy-card ul {
  margin: 8px 0 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 980px) {
  .privacy-wrap {
    padding: 28px 6vw 56px;
  }

  .privacy-title {
    min-height: 110px;
  }

  .privacy-logo {
    position: static;
    width: 70px;
    margin: 36px auto -20px;
  }
}

@media (max-width: 980px) {
  .page {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .hero {
    text-align: center;
    align-items: center;
  }

  .form-section {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .form-card {
    padding: 22px;
  }
}
