/* Privacy policy and technical pages */
.page-policy {
  background: var(--bg);
  color: #e0e0e0;
  line-height: 1.7;
}

.policy-container {
  width: min(calc(100% - 40px), 800px);
  margin: 0 auto;
  padding: 60px 0 100px;
  animation: policy-fade-up 800ms ease-out both;
}

.policy-header {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.policy-logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 30px;
}

.policy-header h1 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.15;
}

.policy-subtitle {
  color: #888;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.policy-content h2 {
  display: inline-block;
  margin: 50px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(59, 140, 235, 0.3);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
}

.policy-content h3 {
  margin: 30px 0 15px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.35;
}

.policy-content p {
  margin: 0 0 20px;
  color: #ccc;
  font-weight: 300;
}

.policy-content ul {
  margin: 0 0 20px;
  padding-left: 20px;
}

.policy-content li {
  margin-bottom: 10px;
  color: #ccc;
  font-weight: 300;
}

.policy-content strong {
  color: #fff;
  font-weight: 700;
}

.policy-content a {
  color: var(--brand);
  transition: color 180ms ease;
}

.policy-content a:hover,
.policy-content a:focus-visible {
  color: #fff;
  outline: none;
}

.policy-back {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 64px auto 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 2px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #b9c2cf;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, text-shadow 180ms ease;
}

.policy-back::before {
  content: '←';
  display: inline-block;
  color: var(--brand);
  font-size: 1.15em;
  line-height: 1;
  transition: transform 180ms ease;
}

.policy-back:hover,
.policy-back:focus-visible {
  border-color: var(--brand);
  color: #fff;
  text-shadow: 0 0 20px rgba(59, 140, 235, 0.28);
}

.policy-back:hover::before,
.policy-back:focus-visible::before {
  transform: translateX(-3px);
}

.policy-back:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--brand);
  outline-offset: 6px;
}

@keyframes policy-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-404 {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 30px 20px;
  background: radial-gradient(circle at 50% 40%, rgba(59, 140, 235, 0.14), transparent 28rem), #050505;
  text-align: center;
}

.error-card {
  width: min(100%, 620px);
  padding: clamp(42px, 7vw, 74px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 90% 0%, rgba(59, 140, 235, 0.13), transparent 36%), rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow-lg);
}

.error-logo {
  width: 128px;
  height: auto;
  margin: 0 auto 34px;
}

.error-code {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.error-title {
  margin: 24px 0 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
}

.error-copy {
  max-width: 46ch;
  margin: 0 auto 34px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.action-card {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid rgba(59, 140, 235, 0.52);
  border-radius: var(--radius-md);
  background: rgba(59, 140, 235, 0.12);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.action-card:hover,
.action-card:focus-visible {
  border-color: var(--brand);
  background: rgba(59, 140, 235, 0.28);
  outline: none;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .policy-container {
    padding-top: 36px;
  }

  .policy-header {
    margin-bottom: 42px;
    padding-bottom: 30px;
  }

  .policy-content h2 {
    margin-top: 40px;
    font-size: 1.28rem;
  }

  .policy-back {
    margin-top: 52px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .error-card {
    padding: 42px 22px;
  }
}

/* 410 Gone — retired offer routes. */
.page-410 {
  min-height: 100svh;
  margin: 0;
  background: #000;
}

.page-410 .gone-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(40px, 7vw, 96px) 24px;
  background: #000;
}

.page-410 .gone-inner {
  width: min(760px, 100%);
  transform: translateY(-2vh);
}

.page-410 .gone-logo-link {
  display: inline-block;
  margin: 0 0 clamp(42px, 5vw, 62px);
}

.page-410 .gone-logo {
  display: block;
  width: clamp(126px, 11vw, 154px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(59, 140, 235, 0.16));
}

.page-410 .gone-copy {
  max-width: 31ch;
  margin: 0;
  color: #f3f5f8;
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: clamp(1.28rem, 2vw, 1.82rem);
  font-weight: 300;
  line-height: 1.48;
  letter-spacing: -0.025em;
}

.page-410 .gone-copy + .gone-copy {
  margin-top: clamp(24px, 3vw, 34px);
}

.page-410 .gone-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  color: inherit;
  font-weight: 400;
  text-decoration: none;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.page-410 .gone-link:hover,
.page-410 .gone-link:focus-visible {
  border-bottom-color: #fff;
  opacity: 0.78;
  outline: none;
}

@media (max-width: 640px) {
  .page-410 .gone-page {
    place-items: center start;
    padding: 34px 24px 42px;
  }

  .page-410 .gone-inner {
    transform: none;
  }

  .page-410 .gone-logo-link {
    margin-bottom: 40px;
  }

  .page-410 .gone-logo {
    width: 126px;
  }

  .page-410 .gone-copy {
    max-width: 100%;
    font-size: clamp(1.08rem, 5.3vw, 1.32rem);
    line-height: 1.5;
    letter-spacing: -0.02em;
  }
}

