:root {
  color-scheme: light;
  --bg: #F8F7FB;
  --surface: #ffffff;
  --surface-2: #F3F0FA;
  --text: #171225;
  --muted: #6E687C;
  --line: #E7E1F2;
  --brand: #7323C7;
  --brand-dark: #4B0878;
  --gold: #FFC400;
  --accent: #10b981;
  --danger: #b42318;
  --shadow: 0 24px 60px rgba(36, 14, 63, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 42%, #F3EFFA 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.watermark-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  opacity: .045;
}

.watermark-bg span {
  width: 160vw;
  color: #0f172a;
  font-size: clamp(42px, 10vw, 140px);
  font-weight: 900;
  line-height: 1.25;
  transform: rotate(-24deg);
  word-spacing: 22px;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(220, 229, 242, .82);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 34px rgba(36, 14, 63, .12);
  backdrop-filter: blur(14px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 154px;
}

.logo img {
  width: 190px;
  max-width: 42vw;
  height: auto;
  display: block;
}

.fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #183153;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(115, 35, 199, .45);
  box-shadow: 0 10px 26px rgba(36, 14, 63, .12);
  text-decoration: none;
}

.btn.primary {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 70%, var(--gold) 170%);
  color: #fff;
}

.hero {
  padding: clamp(44px, 7vw, 86px) 0 24px;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(15, 91, 215, .2);
  border-radius: 999px;
  background: rgba(115, 35, 199, .08);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin: 14px 0 12px;
  font-size: clamp(40px, 8vw, 76px);
  line-height: .95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

h3 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.lead {
  max-width: 860px;
  color: #344054;
  font-size: clamp(17px, 2vw, 21px);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.quick,
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 34px rgba(36, 14, 63, .10);
}

.quick {
  padding: 16px;
}

.quick strong,
.quick span {
  display: block;
}

.quick span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 102px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 34px rgba(36, 14, 63, .10);
}

.sidebar h2 {
  margin-bottom: 12px;
  font-size: 15px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-list a {
  padding: 9px 10px;
  border-radius: 8px;
  color: #344054;
  font-weight: 800;
}

.nav-list a.active,
.nav-list a:hover {
  background: var(--surface-2);
  color: var(--brand-dark);
  text-decoration: none;
}

.content {
  display: grid;
  gap: 16px;
}

.card {
  padding: clamp(18px, 3vw, 30px);
  scroll-margin-top: 110px;
}

.card p,
.card li {
  color: #344054;
}

.info-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.info-list li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.info-list strong {
  display: block;
  margin-bottom: 4px;
  color: #101828;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.cookie-table th,
.cookie-table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background: #F3F0FA;
  color: #183153;
}

.privacy-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: #183153;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cad6e6;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(115, 35, 199, .18);
  border-color: var(--brand);
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #344054;
  font-weight: 700;
}

.checkline input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.result-box {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(16, 185, 129, .35);
  border-radius: 12px;
  background: rgba(16, 185, 129, .1);
  color: #064e3b;
  font-weight: 800;
}

.result-box.visible {
  display: block;
}

.result-box.error {
  border-color: rgba(180, 35, 24, .35);
  background: rgba(180, 35, 24, .08);
  color: var(--danger);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 18px 0 10px;
  color: var(--muted);
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    justify-content: stretch;
    width: 100%;
  }

  .actions .btn {
    flex: 1 1 180px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  h1 {
    font-size: 42px;
  }

  .form-grid,
  .btn {
    width: 100%;
  }
}

@media print {
  .topbar,
  .sidebar,
  .cookie-banner,
  .cookie-overlay {
    display: none !important;
  }

  .page {
    width: 100%;
  }

  .layout {
    display: block;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
  }
}
