:root {
  color-scheme: dark;
  --bg: #060608;
  --bg-soft: #0a0a0e;
  --surface: #111117;
  --surface-raised: #171720;
  --text: #f4f1eb;
  --muted: #aaa6b1;
  --subtle: #807c87;
  --border: #2b2933;
  --border-strong: #3d3848;
  --violet: #a15cff;
  --violet-deep: #7f3fe0;
  --green: #86d74c;
  --green-bright: #9bea5f;
  --danger: #f17683;
  --danger-soft: #261417;
  --focus: #b98cff;
  --shell: 1240px;
  --article: 780px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-focus: 0 0 0 4px rgb(161 92 255 / 18%);
  --font-ar: -apple-system, BlinkMacSystemFont, "SF Arabic", "Noto Sans Arabic",
    "Segoe UI", Tahoma, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.8;
  text-align: start;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--green-bright);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

::selection {
  background: rgb(161 92 255 / 35%);
  color: var(--text);
}

.container {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  border-block-end: 1px solid transparent;
  background: var(--bg);
}

.nav-shell {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
}

.brand-name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-inline-start: auto;
}

.site-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--green);
  transition: transform 150ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--violet);
  cursor: pointer;
}

.menu-button svg {
  width: 25px;
  height: 25px;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(56px, 8vw, 120px);
  padding-block: 72px 84px;
}

.hero-copy {
  max-width: 610px;
}

.hero h1,
.page-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(3rem, 5.4vw, 5.15rem);
  line-height: 1.25;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.85;
}

.text-action {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-block-start: 28px;
  color: var(--green-bright);
  font-size: 18px;
  font-weight: 800;
}

.text-action:hover {
  color: var(--text);
}

.text-action svg,
.route-arrow {
  width: 21px;
  height: 21px;
}

.route-index {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--border);
}

.route-index li {
  border-block-end: 1px solid var(--border);
}

.route-link {
  min-height: 78px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 18px;
  color: var(--text);
}

.route-link:hover {
  color: var(--text);
}

.route-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--violet);
}

.route-icon svg {
  width: 30px;
  height: 30px;
}

.route-label {
  font-size: 18px;
  font-weight: 750;
}

.route-arrow {
  color: var(--violet);
  transition: transform 150ms ease, color 150ms ease;
}

.route-link:hover .route-arrow {
  color: var(--green-bright);
  transform: translateX(-4px);
}

.value-band {
  border-block: 1px solid var(--border);
  background: var(--surface-raised);
  padding-block: 52px 58px;
}

.section-title {
  margin: 0 0 38px;
  color: var(--text);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.4;
  letter-spacing: -0.035em;
  text-align: center;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.value-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding-inline: 34px;
}

.value-item + .value-item {
  border-inline-start: 1px solid var(--border-strong);
}

.value-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--violet-deep);
  border-radius: 50%;
  color: var(--violet);
}

.value-icon svg {
  width: 25px;
  height: 25px;
}

.value-item h2 {
  margin: 0 0 5px;
  font-size: 20px;
  line-height: 1.5;
}

.value-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.page-main {
  border-block-start: 1px solid var(--border);
}

.page-hero {
  padding-block: 76px 54px;
}

.page-hero-inner {
  max-width: 880px;
}

.page-title {
  font-size: clamp(2.65rem, 4.8vw, 4.6rem);
}

.updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.page-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.95;
}

.editable-token {
  display: inline;
  color: var(--green-bright);
  font-weight: 750;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(58px, 8vw, 112px);
  align-items: start;
  padding-block: 18px 100px;
}

.legal-article {
  grid-column: 1;
  min-width: 0;
  max-width: var(--article);
}

.legal-article section {
  scroll-margin-top: 120px;
}

.legal-article section + section {
  margin-block-start: 42px;
  padding-block-start: 38px;
  border-block-start: 1px solid var(--border);
}

.legal-article h2,
.content-section h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.legal-article h3,
.content-section h3 {
  margin: 28px 0 8px;
  color: var(--text);
  font-size: 19px;
}

.legal-article p,
.legal-article li,
.content-section p,
.content-section li {
  color: var(--muted);
  line-height: 1.95;
}

.legal-article p,
.content-section p {
  margin: 0 0 14px;
}

.legal-article ul,
.legal-article ol,
.content-section ul,
.content-section ol {
  margin: 14px 0;
  padding-inline-start: 24px;
}

.legal-article li + li,
.content-section li + li {
  margin-block-start: 8px;
}

.inline-link {
  color: var(--green-bright);
  text-decoration: underline;
  text-decoration-color: rgb(134 215 76 / 42%);
  text-underline-offset: 4px;
}

.toc {
  grid-column: 2;
  position: sticky;
  inset-block-start: 28px;
  padding-inline-start: 26px;
  border-inline-start: 1px solid var(--border-strong);
}

.toc-title {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.toc nav {
  display: grid;
}

.toc a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-block-end: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.toc a:hover {
  color: var(--green-bright);
}

.toc-support {
  margin-block-start: 28px;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.toc-support strong {
  display: block;
  margin-block-end: 4px;
}

.toc-support p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.notice {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-block: 28px;
  padding: 20px;
  border: 1px solid var(--violet-deep);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.notice--danger {
  border-color: rgb(241 118 131 / 55%);
  background: var(--danger-soft);
}

.notice-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--violet);
}

.notice--danger .notice-icon {
  color: var(--danger);
}

.notice-icon svg {
  width: 28px;
  height: 28px;
}

.notice p {
  margin: 0;
  color: var(--text);
}

.delete-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(56px, 8vw, 96px);
  align-items: start;
  padding-block: 12px 100px;
}

.delete-info {
  grid-column: 1;
}

.delete-form-wrap {
  grid-column: 2;
  grid-row: 1;
}

.process-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.process-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding-block: 20px;
  border-block-end: 1px solid var(--border);
}

.process-number {
  color: var(--violet);
  font-size: 18px;
  font-weight: 850;
}

.process-item h2 {
  margin: 0 0 3px;
  font-size: 19px;
}

.process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.form-surface {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.field + .field {
  margin-block-start: 24px;
}

.field-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-block-end: 9px;
}

label {
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
}

.required {
  color: var(--danger);
}

.counter {
  color: var(--subtle);
  font-size: 13px;
  direction: ltr;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  padding: 14px 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input {
  min-height: 54px;
}

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

input::placeholder,
textarea::placeholder {
  color: var(--subtle);
}

input:focus,
textarea:focus {
  border-color: var(--violet);
  box-shadow: var(--shadow-focus);
  outline: none;
}

.form-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--violet);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease,
    color 150ms ease;
}

.button:hover {
  border-color: var(--green);
  background: rgb(134 215 76 / 8%);
  color: var(--green-bright);
}

.button svg {
  width: 21px;
  height: 21px;
}

.button--block {
  width: 100%;
  margin-block-start: 28px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block: 24px;
  color: var(--subtle);
  font-size: 13px;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.secondary-action {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--green-bright);
  font-weight: 750;
}

.form-status {
  margin-block-start: 18px;
  padding: 18px;
  border: 1px solid var(--violet);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.form-status[hidden] {
  display: none;
}

.form-status strong {
  display: block;
  margin-block-end: 4px;
}

.form-status p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.support-grid,
.health-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(56px, 8vw, 110px);
  align-items: start;
  padding-block: 12px 100px;
}

.support-contact {
  position: sticky;
  inset-block-start: 28px;
}

.support-email {
  display: inline-block;
  margin-block: 12px 24px;
  color: var(--green-bright);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  direction: ltr;
}

.support-note {
  color: var(--muted);
}

.faq-list {
  border-block-start: 1px solid var(--border);
}

.faq-item {
  border-block-end: 1px solid var(--border);
}

.faq-item summary {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 20px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--violet-deep);
  border-radius: 50%;
  color: var(--violet);
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-width: 680px;
  padding: 0 0 24px;
  color: var(--muted);
  line-height: 1.9;
}

.faq-answer p {
  margin: 0;
}

.content-stack {
  padding-block: 12px 100px;
}

.content-section {
  max-width: 860px;
}

.content-section + .content-section {
  margin-block-start: 42px;
  padding-block-start: 38px;
  border-block-start: 1px solid var(--border);
}

.permission-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-start: 30px;
  border-block: 1px solid var(--border);
}

.permission-step {
  padding: 24px;
}

.permission-step + .permission-step {
  border-inline-start: 1px solid var(--border);
}

.permission-step strong {
  display: block;
  margin-block-end: 8px;
  color: var(--violet);
  font-size: 18px;
}

.permission-step p {
  margin: 0;
  font-size: 14px;
}

.site-footer {
  border-block-start: 1px solid var(--border);
  padding-block: 44px 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px;
}

.footer-brand .brand-logo {
  width: 48px;
  height: 48px;
}

.footer-brand .brand-name {
  font-size: 27px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
}

.footer-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding-inline: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a + a {
  border-inline-start: 1px solid var(--border-strong);
}

.footer-email {
  color: var(--green-bright);
  font-size: 15px;
  font-weight: 750;
  direction: ltr;
}

.footer-bottom {
  margin-block-start: 26px;
  color: var(--subtle);
  font-size: 13px;
  text-align: center;
}

.redirect-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.redirect-card {
  width: min(100%, 520px);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}

.redirect-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.redirect-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .nav-shell {
    min-height: 88px;
    flex-wrap: wrap;
  }

  html.js .nav-shell {
    flex-wrap: nowrap;
  }

  html.js .menu-button {
    display: inline-flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
    display: grid;
    gap: 0;
    margin-inline-start: 0;
    padding: 0 0 20px;
    background: var(--bg);
  }

  html.js .site-nav {
    position: absolute;
    inset: 88px 0 auto;
    display: none;
    min-height: calc(100svh - 88px);
    align-content: start;
    padding: 20px 24px 40px;
    border-block-start: 1px solid var(--border);
  }

  html.js .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav a {
    min-height: 62px;
    border-block-end: 1px solid var(--border);
    font-size: 17px;
  }

  .site-nav a::after {
    inset-inline-end: auto;
    width: 44px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-block: 56px 68px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .value-list {
    grid-template-columns: 1fr;
  }

  .value-item {
    padding: 24px 0;
  }

  .value-item + .value-item {
    border-inline-start: 0;
    border-block-start: 1px solid var(--border-strong);
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .legal-article,
  .toc {
    grid-column: 1;
  }

  .toc {
    grid-row: 1;
    position: static;
    padding: 0 0 24px;
    border-inline-start: 0;
    border-block-end: 1px solid var(--border);
  }

  .toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  .toc-support {
    display: none;
  }

  .delete-layout,
  .support-grid,
  .health-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .delete-info,
  .delete-form-wrap {
    grid-column: 1;
  }

  .delete-info {
    grid-row: 1;
  }

  .delete-form-wrap {
    grid-row: 2;
  }

  .support-contact {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 92px;
  }

  .container {
    width: min(calc(100% - 32px), var(--shell));
  }

  .nav-shell {
    min-height: 80px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: 27px;
  }

  html.js .site-nav {
    inset-block-start: 80px;
    min-height: calc(100svh - 80px);
    padding-inline: 16px;
  }

  .hero {
    min-height: auto;
    gap: 42px;
    padding-block: 52px 58px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 3.55rem);
    line-height: 1.35;
  }

  .hero-lead {
    margin-block-start: 18px;
    font-size: 18px;
  }

  .text-action {
    margin-block-start: 22px;
    font-size: 17px;
  }

  .route-link {
    min-height: 82px;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    gap: 13px;
  }

  .route-icon {
    width: 34px;
    height: 34px;
  }

  .route-icon svg {
    width: 28px;
    height: 28px;
  }

  .route-label {
    font-size: 17px;
  }

  .value-band {
    padding-block: 42px 48px;
  }

  .section-title {
    margin-block-end: 24px;
    font-size: 2rem;
    text-align: start;
  }

  .value-item {
    grid-template-columns: 52px minmax(0, 1fr);
    padding-block: 22px;
  }

  .value-icon {
    width: 48px;
    height: 48px;
  }

  .page-hero {
    padding-block: 52px 42px;
  }

  .page-title {
    font-size: clamp(2.25rem, 11vw, 3.1rem);
    line-height: 1.38;
  }

  .page-lead {
    font-size: 16px;
  }

  .legal-layout,
  .delete-layout,
  .support-grid,
  .health-grid,
  .content-stack {
    padding-block-end: 72px;
  }

  .toc nav {
    grid-template-columns: 1fr;
  }

  .legal-article section + section,
  .content-section + .content-section {
    margin-block-start: 34px;
    padding-block-start: 30px;
  }

  .legal-article h2,
  .content-section h2 {
    font-size: 1.55rem;
  }

  .notice {
    padding: 16px;
  }

  .form-surface {
    padding: 22px 18px;
  }

  .permission-steps {
    grid-template-columns: 1fr;
  }

  .permission-step + .permission-step {
    border-inline-start: 0;
    border-block-start: 1px solid var(--border);
  }

  .faq-item summary {
    min-height: 72px;
    font-size: 16px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .footer-links a {
    justify-content: center;
    padding-inline: 8px;
    border: 0 !important;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .toc,
  .skip-link {
    display: none !important;
  }

  .page-main {
    border: 0;
  }

  .page-hero,
  .legal-layout,
  .content-stack {
    padding: 0;
  }

  .legal-article,
  .content-section {
    max-width: none;
  }

  .legal-article p,
  .legal-article li,
  .content-section p,
  .content-section li,
  .updated,
  .page-lead {
    color: #333;
  }

  .legal-article section + section,
  .content-section + .content-section {
    border-color: #ddd;
  }

  .editable-token,
  .inline-link {
    color: #2e6a13;
  }
}
