:root {
  color-scheme: dark;
  --bg: #090d16;
  --surface: rgba(19, 26, 42, 0.82);
  --surface-strong: #151d30;
  --line: rgba(171, 193, 232, 0.16);
  --text: #f5f8ff;
  --muted: #a9b6cc;
  --brand: #66f0c3;
  --brand-2: #7b9cff;
  --danger: #ff6f87;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(77, 105, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 90% 8%, rgba(50, 226, 176, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #a5ffe2;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 22, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(102, 240, 195, 0.45);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(102, 240, 195, 0.2), rgba(123, 156, 255, 0.22));
  box-shadow: inset 0 0 18px rgba(102, 240, 195, 0.08);
  color: var(--brand);
  font-size: 1.1rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-select {
  max-width: 190px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 36px 0 12px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
}

.page-shell {
  padding-block: clamp(42px, 7vw, 88px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(125deg, rgba(23, 33, 56, 0.94), rgba(13, 20, 34, 0.82)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: -135px;
  border-radius: 38%;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  content: "";
  filter: blur(2px);
  opacity: 0.17;
  transform: rotate(24deg);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.3rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.section-heading {
  margin: 64px 0 20px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.policy-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.policy-card:hover {
  border-color: rgba(102, 240, 195, 0.48);
  background: rgba(24, 34, 55, 0.94);
  color: var(--text);
  transform: translateY(-4px);
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: rgba(102, 240, 195, 0.1);
  color: var(--brand);
  font-weight: 900;
}

.policy-card h2 {
  margin: 26px 0 6px;
  font-size: 1.25rem;
}

.policy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.card-arrow {
  margin-top: 20px;
  color: var(--brand);
  font-weight: 800;
}

.locale-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  list-style: none;
}

.locale-list a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(17, 25, 42, 0.66);
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.locale-list a:hover {
  border-color: var(--brand);
  color: var(--text);
}

.document-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: start;
  gap: 28px;
}

.document {
  overflow-wrap: anywhere;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document h1 {
  margin: 0 0 26px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.document h2 {
  margin: 2.4em 0 0.65em;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.3;
}

.document h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.08rem;
}

.document p,
.document li {
  color: #d5ddeb;
}

.document ul,
.document ol {
  padding-inline-start: 1.35em;
}

.document code {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.35em;
  background: #0b1120;
  font-size: 0.9em;
}

.side-nav {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 23, 38, 0.78);
}

.side-nav a {
  display: block;
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.side-nav a[aria-current="page"],
.side-nav a:hover {
  background: rgba(102, 240, 195, 0.09);
  color: var(--brand);
}

.deletion-panel {
  margin: 0 0 36px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(255, 111, 135, 0.32);
  border-radius: 18px;
  background: rgba(81, 26, 43, 0.18);
}

.deletion-panel h2 {
  margin: 0 0 8px;
}

.deletion-panel p,
.deletion-panel li {
  color: #e1d7dd;
}

.notice {
  margin: 18px 0;
  border-left: 3px solid var(--danger);
  padding: 10px 14px;
  background: rgba(255, 111, 135, 0.07);
}

.auth-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px;
  background: rgba(7, 11, 20, 0.5);
}

.auth-summary[hidden],
.confirmation[hidden],
[hidden] {
  display: none !important;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--brand), #4ccfab);
  color: #06130f;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

button.secondary {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
}

button.danger {
  background: linear-gradient(135deg, #ff7890, #e94e6a);
  color: #25060c;
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.5);
  opacity: 0.45;
}

.confirm-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
}

.confirm-label input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--danger);
}

.typed-confirmation {
  display: block;
  margin: 12px 0 18px;
}

.typed-confirmation span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.typed-confirmation input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #0a101c;
  color: var(--text);
  font: inherit;
}

.status {
  margin: 14px 0 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(123, 156, 255, 0.1);
  color: #dce4ff;
}

.status[data-state="error"] {
  background: rgba(255, 111, 135, 0.11);
  color: #ffd5dd;
}

.status[data-state="success"] {
  background: rgba(102, 240, 195, 0.1);
  color: #c8ffed;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 800px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .policy-card {
    min-height: 190px;
  }

  .document-wrap {
    display: flex;
    flex-direction: column-reverse;
  }

  .side-nav {
    position: static;
    display: flex;
    width: 100%;
    overflow-x: auto;
  }

  .side-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 22px, 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-text {
    display: none;
  }

  .hero,
  .document {
    border-radius: 20px;
  }

  .page-shell {
    padding-block: 28px 46px;
  }

  .footer-inner,
  .auth-summary {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .policy-card {
    transition: none;
  }
}
