/* ===================== THEME VARIABLES ===================== */
:root {
  color-scheme: light;
  --purple: #7b2cff;
  --magenta: #ff4fd8;
  --teal: #34e1c1;
  --indigo: #1d1bff;

  /* Light palette */
  --text: #111425;
  --muted: #465074;
  --text-sub: #5c6690;
  --bg: #f7f8ff;
  --bg-grad: linear-gradient(
    135deg,
    rgba(123, 44, 255, 0.08),
    rgba(255, 79, 216, 0.08) 40%,
    rgba(52, 225, 193, 0.08)
  );
  --surface: #ffffff;
  --card: #ffffff;
  --border: rgba(123, 44, 255, 0.18);
  --ring: rgba(123, 44, 255, 0.35);
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  --btn-grad: linear-gradient(
    135deg,
    var(--purple),
    var(--magenta) 50%,
    var(--teal)
  );
  --btn-grad-hover: linear-gradient(135deg, #6935ff, #ff63dd 50%, #51ecd0);
}

html.dark {
  color-scheme: dark;
  --text: #e9ecff;
  --muted: #9aa3c7;
  --text-sub: #b8c0ff;
  --bg: #080a18;
  --bg-grad: linear-gradient(
    135deg,
    rgba(123, 44, 255, 0.12),
    rgba(255, 79, 216, 0.12) 40%,
    rgba(52, 225, 193, 0.12)
  );
  --surface: #0a0d1f;
  --card: #0c1024;
  --border: rgba(123, 44, 255, 0.25);
  --ring: rgba(123, 44, 255, 0.5);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --btn-grad: linear-gradient(
    135deg,
    var(--purple),
    var(--magenta) 50%,
    var(--teal)
  );
  --btn-grad-hover: linear-gradient(135deg, #6935ff, #ff63dd 50%, #51ecd0);
}

/* ===================== BASE LAYOUT ===================== */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg-grad), var(--bg);
  background-attachment: fixed, fixed; /* keeps gradient consistent */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  flex: 1 0 auto;
}

/* ===================== HEADER ===================== */
header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0 12px;
}

.brand img {
  width: 75px;
  height: auto;
  display: block;
}

.brand .name {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--text);
}
.shell {
  width: 100%;
}
.wrap-privacy-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px;
  flex: 1 0 auto;
}

/* ===================== HERO ===================== */
.hero {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
}

.hero p {
  margin: 0;
  color: var(--text-sub);
  font-size: 16px;
}

/* ===================== BUTTONS ===================== */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  background: var(--btn-grad);
  box-shadow: 0 6px 20px rgba(123, 44, 255, 0.35);
  transition: transform 0.12s ease, filter 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  background: var(--btn-grad-hover);
}
.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  background: linear-gradient(
    135deg,
    rgba(52, 225, 193, 0.15),
    rgba(123, 44, 255, 0.15)
  );
}

/* ===================== FEATURE CARDS ===================== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ===================== NOTICE & ERROR ===================== */
.notice {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(52, 225, 193, 0.18),
    rgba(123, 44, 255, 0.18)
  );
  border: 1px solid rgba(52, 225, 193, 0.35);
  color: var(--text);
}

.form-errors {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 79, 216, 0.12),
    rgba(123, 44, 255, 0.12)
  );
  border: 1px solid rgba(255, 79, 216, 0.35);
  color: var(--text);
}

.form-errors ul {
  margin: 8px 0 0 16px;
}
.field-error {
  margin-top: 6px;
  font-size: 12px;
  color: #ff4fd8;
}

input.invalid,
select.invalid,
textarea.invalid {
  border-color: rgba(255, 79, 216, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 79, 216, 0.2);
}

/* ===================== MODALS ===================== */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 6, 16, 0);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, background 0.28s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(4, 6, 16, 0.6);
}

.modal-card {
  width: min(720px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transform: translateY(28px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.modal.open .modal-card {
  transform: translateY(0);
  opacity: 1;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  padding: 18px;
  overflow: auto;
  flex: 1 1 auto;
}

/* ===================== FORM ELEMENTS ===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.col-6 {
  grid-column: span 6;
}
.col-12 {
  grid-column: span 12;
}

@media (max-width: 700px) {
  .col-6 {
    grid-column: span 12;
  }
}

label {
  display: block;
  font-weight: 600;
  margin: 2px 0 6px;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px var(--ring);
  border-color: transparent;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

/* ===================== FOOTER ===================== */
:root {
  --footer-accent: var(--purple);
}

.site-footer {
  /* ✅ unified single color background to avoid double tint */
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text);
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 18px;
  text-align: center;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.contact-item a {
  color: var(--text);
  text-decoration: underline dotted;
}

.contact-item a:hover {
  color: var(--purple);
}

.ico {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 20px;
  color: var(--footer-accent);
  background: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.ico-phone {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M6.6 10.8a15.5 15.5 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.3 1.2.4 2.6.7 4 .7.6 0 1 .4 1 1V21c0 .6-.4 1-1 1C10.7 22 2 13.3 2 3c0-.6.4-1 1-1h3.4c.6 0 1 .4 1 1 0 1.4.3 2.8.7 4 .1.4 0 .8-.3 1.1L6.6 10.8z"/></svg>');
}

.ico-pin {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z"/></svg>');
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: center;
}

@media (max-width: 700px) {
  .footer-contact {
    gap: 14px;
  }
}
