:root {
  color-scheme: light;
  --paper: #f5f6f8;
  --panel: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --blue: #2864d8;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

a {
  color: #1f55b5;
}

.privacy-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(100%, 620px);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.privacy-header__inner {
  display: grid;
  width: 100%;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: max(18px, env(safe-area-inset-top)) 17px 14px;
}

.privacy-back {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #101828;
  background: rgba(17, 24, 39, 0.07);
  text-decoration: none;
}

.privacy-back svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.privacy-logo {
  display: block;
  width: min(100%, 150px);
  height: auto;
  margin: 0 auto;
}

.privacy-brand {
  display: grid;
  min-width: 0;
  place-items: center;
}

.privacy-main {
  width: min(100% - 34px, 760px);
  margin: 0 auto;
  padding: 34px 0 56px;
}

.privacy-intro {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.privacy-eyebrow {
  margin: 0 0 8px;
  color: #1f55b5;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  letter-spacing: 0;
}

.privacy-lead {
  max-width: 620px;
  margin: 12px 0 0;
  color: #475467;
  font-size: 1rem;
  line-height: 1.6;
}

.privacy-updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.privacy-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-section h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.privacy-section h3 {
  margin: 20px 0 7px;
  font-size: 1rem;
}

.privacy-section p,
.privacy-section li {
  color: #475467;
  font-size: 0.94rem;
  line-height: 1.65;
}

.privacy-section p {
  margin: 8px 0;
}

.privacy-section ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.process-list {
  display: grid;
  gap: 0;
  margin: 12px 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: process;
}

.process-list li::before {
  display: grid;
  width: 28px;
  height: 28px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  content: counter(process);
  font-size: 0.78rem;
  font-weight: 800;
}

.process-list strong,
.process-list span,
.source-row strong,
.source-row small {
  display: block;
}

.process-list span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.source-list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.source-row > span:last-child {
  color: var(--blue);
  font-size: 1.1rem;
}

.source-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.preference-list {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.preference-row strong,
.preference-row span {
  display: block;
}

.preference-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.preference-switch {
  width: 22px;
  height: 22px;
  accent-color: var(--blue);
}

.preference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.preference-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  font: inherit;
  font-weight: 760;
}

.preference-save {
  color: #ffffff;
  background: var(--blue);
}

.preference-disable {
  color: #1f55b5;
  background: #ffffff;
}

.preference-status {
  margin-top: 12px !important;
  color: var(--muted) !important;
  font-size: 0.82rem !important;
}

.privacy-footer {
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 520px) {
  .privacy-main {
    padding-top: 26px;
  }

  .preference-actions {
    display: grid;
  }
}

.consent-banner {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  z-index: 900;
  max-width: 680px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  color: #101828;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.2);
  font-family: "Aptos", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

.consent-banner__content {
  display: grid;
  gap: 16px;
}

.consent-banner strong {
  display: block;
  font-size: 1rem;
}

.consent-banner p {
  margin: 6px 0;
  color: #475467;
  font-size: 0.88rem;
  line-height: 1.45;
}

.consent-banner a {
  color: #1f55b5;
  font-size: 0.85rem;
  font-weight: 700;
}

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

.consent-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #2864d8;
  border-radius: 8px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 760;
}

.consent-button--primary {
  color: #ffffff;
  background: #2864d8;
}

.consent-button--secondary {
  color: #1f55b5;
  background: #ffffff;
}

@media (min-width: 640px) {
  .consent-banner__content {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .consent-banner__actions {
    min-width: 300px;
  }
}

@media (max-width: 390px) {
  .consent-banner__actions {
    grid-template-columns: 1fr;
  }
}
