/* وقف العمودي — landing (Figma: تطبيق وقف) */

:root {
  --safe-primary: #1F3D33;
  --safe-primary-600: #1A342C;
  --safe-primary-700: #142B24;
  --safe-primary-100: #EEF3F0;
  --safe-primary-050: #F8F1E5;
  --safe-accent: #DAA861;
  --safe-accent-700: #C4924A;
  --safe-ink: #1F2A26;
  --safe-body: #69736F;
  --safe-muted: #69736F;
  --safe-surface: #ffffff;
  --safe-bg: #FCFAF6;
  --safe-mint: #EEF3F0;
  --safe-line: #E2E7E4;
  --safe-border: rgba(31, 42, 38, 0.1);
  --safe-footer: #142B24;
  --safe-shadow-sm: 0 4px 4px rgba(0, 0, 0, 0.25);
  --safe-shadow-md: 0 18px 45px rgba(20, 43, 36, 0.1);
  --safe-shadow-brand: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --safe-radius: 22px;
  --safe-radius-lg: 28px;
  --safe-font: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

html[lang="en"] {
  --safe-font: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--safe-font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--safe-body);
  background: var(--safe-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 112px;
}

.section__eyebrow {
  display: inline-block;
  margin-block-end: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 20px;
  color: var(--safe-accent);
}

.section__title {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.43;
  color: var(--safe-ink);
}

.section__lead {
  margin: 0;
  max-width: 700px;
  font-size: 18px;
  line-height: 32.4px;
  color: var(--safe-body);
}

.section--center {
  text-align: center;
}

.section--center .section__lead {
  margin-inline: auto;
}

.section--mint {
  background: rgba(238, 243, 240, 0.5);
}

.section--cream {
  background: rgba(248, 241, 229, 0.5);
}

.scroll-progress {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 32px;
  height: 54px;
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 25.5px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

[dir="ltr"] .btn-gold img,
[dir="ltr"] .hero__actions .btn-gold img {
  transform: scaleX(-1);
}

.btn:focus-visible,
.site-nav a:focus-visible,
.lang-switch__opt:focus-visible,
.site-header__menu-toggle:focus-visible {
  outline: 2px solid var(--safe-accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--safe-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--safe-primary-600);
}

.btn-gold {
  background: var(--safe-accent);
  color: var(--safe-primary);
}

.btn-gold:hover {
  background: var(--safe-accent-700);
  color: var(--safe-primary-700);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 200px;
  height: 54px;
  padding: 0 32px;
  background: #fff;
  border-radius: 6px;
  color: var(--safe-primary);
  text-align: start;
}

.btn-store:hover {
  opacity: 0.92;
}

.btn-store__text small {
  display: block;
  font-size: 8px;
  font-weight: 400;
  line-height: 12.5px;
  color: var(--safe-body);
}

.btn-store__text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.btn-store--ghost {
  width: 180px;
  height: 44px;
  padding: 1px 17px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-store--ghost .btn-store__text small,
.btn-store--ghost .btn-store__text strong {
  color: #fff;
}

.btn-store--ghost .btn-store__text small {
  display: none;
}

/* Header */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(31, 42, 38, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
  max-width: 1200px;
}

.site-header__logo img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  position: relative;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22.5px;
  color: var(--safe-body);
}

.site-nav a.is-current {
  color: var(--safe-primary);
  font-weight: 500;
}

.site-nav a.is-current::after {
  content: '';
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: 2px;
  width: 20px;
  height: 3px;
  margin-inline-start: -10px;
  border-radius: 999px;
  background: var(--safe-accent);
}

.site-nav a:hover {
  color: var(--safe-primary);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--safe-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-switch--mobile {
  align-self: flex-start;
  margin-block-end: 0.5rem;
}

.lang-switch__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--safe-muted);
}

.lang-switch__opt.is-active {
  background: var(--safe-mint);
  color: var(--safe-primary);
}

.lang-switch__sep {
  color: var(--safe-line);
  font-size: 0.75rem;
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.site-header__actions .btn {
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
  line-height: 22.5px;
}

.site-header__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--safe-line);
  border-radius: 6px;
  background: #fff;
  color: var(--safe-ink);
  cursor: pointer;
}

.site-header__mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 0.3s ease, opacity 0.25s ease;
  padding-inline: 24px;
  background: rgba(255, 255, 255, 0.98);
  border-block-start: 1px solid var(--safe-line);
}

.site-header__mobile-nav > .site-header__mobile-nav-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-header__mobile-nav.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.site-header__mobile-nav.is-open .site-header__mobile-nav-inner {
  padding-block: 1rem 1.25rem;
}

body.is-menu-open {
  overflow: hidden;
}

.site-header__mobile-nav a {
  padding: 0.85rem 0;
  font-weight: 600;
  color: var(--safe-ink);
  border-block-end: 1px solid var(--safe-line);
}

@media (min-width: 960px) {
  .site-nav,
  .site-header__actions {
    display: flex;
  }

  .site-header__menu-toggle {
    display: none;
  }

  .site-header__mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  padding-block-start: 72px;
  min-height: 928px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 80%, rgba(31, 61, 51, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 25% 20%, rgba(218, 168, 97, 0.04) 0%, transparent 50%),
    #FCFAF6;
}

.hero__arc {
  position: absolute;
  inset-inline-end: -168px;
  inset-block-start: 0;
  width: 780px;
  height: 600px;
  border: 1px solid var(--safe-accent);
  border-radius: 0 0 9999px 9999px;
  opacity: 0.03;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  inset-inline-start: 360px;
  inset-block-start: 80px;
  width: 500px;
  height: 500px;
  border-radius: 9999px;
  background: rgba(31, 61, 51, 0.05);
  filter: blur(60px);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 80px;
  align-items: center;
  padding-block: 112px;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 536px;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 536px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(218, 168, 97, 0.1);
  color: var(--safe-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.hero__badge img {
  width: 17px;
  height: 16px;
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(2rem, 5vw, 56px);
  font-weight: 700;
  line-height: 1.28;
  color: var(--safe-ink);
}

.hero__title-line {
  display: block;
}

.hero__word-green {
  color: var(--safe-primary);
}

.hero__word-gold {
  color: var(--safe-accent);
}

.hero__subtitle {
  margin: 0 0 32px;
  font-size: 20px;
  line-height: 28px;
  color: var(--safe-body);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-block-end: 32px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--safe-body);
}

.hero__trust-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--safe-mint);
  flex-shrink: 0;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

/* Phone pair */
.phone-pair {
  position: relative;
  width: min(536px, 100%);
  aspect-ratio: 536 / 633;
}

.phone-pair__shot {
  position: absolute;
  inset-block-start: 0;
  width: 58.2%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--safe-shadow-sm);
  background: #142B24;
}

.phone-pair__front {
  inset-inline-start: 0;
  z-index: 2;
}

.phone-pair__back {
  inset-inline-start: 41.8%;
  z-index: 1;
}

.phone-pair--sm {
  width: min(472px, 100%);
  aspect-ratio: 468 / 553;
}

.phone-pair--sm .phone-pair__shot {
  width: 58.2%;
}

/* About */
.about {
  background: var(--safe-bg);
}

.about__head {
  text-align: center;
  margin-block-end: 64px;
}

.about__cards {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .about__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-card {
  padding: 41px;
  background: #fff;
  border: 1px solid var(--safe-line);
  border-radius: 22px;
  text-align: center;
}

.about-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: var(--safe-mint);
}

.about-card__icon svg,
.about-card__icon img {
  width: 25px;
  height: 24px;
}

.about-card__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--safe-ink);
}

.about-card__desc {
  margin: 0;
  font-size: 16px;
  line-height: 28.8px;
  color: var(--safe-body);
}

/* Features grid */
.features__head {
  text-align: center;
  margin-block-end: 64px;
}

.features__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-tile {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 183px;
  padding: 33px;
  background: #fff;
  border: 1px solid var(--safe-line);
  border-radius: 22px;
}

.feature-tile__body {
  flex: 1;
  min-width: 0;
  text-align: start;
}

.feature-tile__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--safe-ink);
}

.feature-tile__desc {
  margin: 0;
  font-size: 14px;
  line-height: 27px;
  color: var(--safe-body);
}

.feature-tile__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.feature-tile__icon svg {
  width: 21px;
  height: 20px;
}

/* Showcase */
.showcase {
  overflow: hidden;
}

.showcase__grid {
  display: grid;
  gap: 64px;
  align-items: center;
}

@media (min-width: 1024px) {
  .showcase__grid {
    grid-template-columns: 1fr 1fr;
  }

  .showcase--flip .showcase__copy {
    order: 2;
  }
}

.showcase__copy {
  max-width: 536px;
}

.showcase__copy .section__title {
  line-height: 54.6px;
}

.showcase__copy .section__lead {
  max-width: 536px;
  font-size: 18px;
  line-height: 32.4px;
}

/* How */
.how__head {
  text-align: center;
  margin-block-end: 64px;
}

.how__track {
  position: relative;
}

.how__line {
  display: none;
}

@media (min-width: 1024px) {
  .how__line {
    display: block;
    position: absolute;
    inset-inline: 12.5%;
    inset-block-start: 28px;
    height: 2px;
    background: linear-gradient(90deg, rgba(218, 168, 97, 0.4), rgba(218, 168, 97, 0.2), rgba(218, 168, 97, 0.4));
  }
}

.how__steps {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .how__steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .how__steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.how-step {
  position: relative;
  text-align: center;
}

.how-step__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--safe-mint);
}

.how-step__icon svg,
.how-step__icon img {
  width: 25px;
  height: 24px;
}

.how-step__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--safe-ink);
}

.how-step__desc {
  margin: 0;
  font-size: 14px;
  line-height: 27px;
  color: var(--safe-body);
}

.how-step__num {
  display: inline-grid;
  place-items: center;
  margin-block-start: 12px;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(218, 168, 97, 0.15);
  color: var(--safe-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

/* Trust */
.trust {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 25% 20%, rgba(218, 168, 97, 0.08) 0%, transparent 50%),
    #1F3D33;
  color: rgba(255, 255, 255, 0.7);
}

.trust .section__eyebrow {
  color: var(--safe-accent);
}

.trust .section__title {
  color: #fff;
}

.trust .section__lead {
  color: rgba(255, 255, 255, 0.7);
  max-width: 650px;
}

.trust__pills {
  display: grid;
  gap: 24px;
  margin-block-start: 64px;
}

@media (min-width: 768px) {
  .trust__pills {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-pill {
  text-align: center;
}

.trust-pill__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.trust-pill__icon svg {
  width: 25px;
  height: 24px;
}

.trust-pill__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: #fff;
}

/* Sadaqa */
.sadaqa {
  text-align: center;
}

.sadaqa__heart {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: rgba(218, 168, 97, 0.15);
}

.sadaqa__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-block-start: 48px;
}

.sadaqa__dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(218, 168, 97, 0.5);
}

.sadaqa__dots span:nth-child(2) {
  background: var(--safe-accent);
}

/* Download */
.download {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 25% 20%, rgba(218, 168, 97, 0.08) 0%, transparent 50%),
    #1F3D33;
}

.download__inner {
  display: grid;
  gap: 64px;
  align-items: center;
}

@media (min-width: 900px) {
  .download__inner {
    grid-template-columns: 1fr 192px;
  }
}

.download__copy .section__title {
  color: #fff;
  margin-block-end: 16px;
}

.download__copy .section__lead {
  color: rgba(255, 255, 255, 0.7);
  margin-block-end: 32px;
  max-width: 500px;
  font-size: 18px;
}

.download__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.download__mark-wrap {
  position: relative;
  width: 192px;
  height: 192px;
  margin-inline: auto;
}

.download__rings {
  position: absolute;
  inset: 0;
}

.download__rings::before,
.download__rings::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  border: 1px solid rgba(218, 168, 97, 0.1);
}

.download__rings::before {
  inset: 0;
}

.download__rings::after {
  inset: -34px;
  border-color: rgba(255, 255, 255, 0.05);
}

.download__mark {
  position: relative;
  z-index: 1;
  width: 192px;
  height: 192px;
  padding: 2px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(218, 168, 97, 0.2) 0%, #142B24 100%);
  border: 2px solid rgba(218, 168, 97, 0.3);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.download__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 42px;
}

/* Footer */
.site-footer {
  padding: 81px 0 40px;
  background: var(--safe-footer);
  border-block-start: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__main {
  display: grid;
  gap: 40px;
  padding-block-end: 56px;
}

@media (min-width: 900px) {
  .site-footer__main {
    grid-template-columns: repeat(4, 1fr);
  }
}

.site-footer__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.site-footer__logo img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
}

.site-footer__brand-name {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #fff;
}

.site-footer__tagline {
  margin: 0;
  font-size: 14px;
  line-height: 25.2px;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__heading {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #fff;
}

.site-footer__list {
  display: grid;
  gap: 12px;
}

.site-footer__list a {
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__list a:hover {
  color: #fff;
}

.site-footer__stores {
  display: grid;
  gap: 12px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block-start: 33px;
  border-block-start: 1px solid #626262;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.3);
}

.site-footer__bottom span:last-child {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* Legal */
.legal {
  padding-block-start: var(--header-h);
  min-height: 72vh;
  background: var(--safe-bg);
}

.legal__hero {
  padding-block: clamp(2.25rem, 6vw, 3.75rem);
  border-block-end: 1px solid var(--safe-line);
}

.legal__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-block-end: 1rem;
  font-size: 0.875rem;
  color: var(--safe-muted);
}

.legal__breadcrumb a {
  color: var(--safe-primary);
  font-weight: 600;
}

.legal__breadcrumb-sep { opacity: 0.5; }

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: 1rem;
  font-weight: 700;
  color: var(--safe-primary);
}

.legal__back svg { transform: scaleX(-1); }
[dir="ltr"] .legal__back svg { transform: none; }

.legal__title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--safe-ink);
}

.legal__updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--safe-mint);
  color: var(--safe-primary);
  font-size: 0.875rem;
  font-weight: 600;
}

.legal__layout {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(2rem, 5vw, 3rem);
}

.legal__card {
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--safe-surface);
  border: 1px solid var(--safe-line);
  border-radius: var(--safe-radius);
}

.legal__content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--safe-body);
}

.legal__empty { text-align: center; }

.legal__content h1,
.legal__content h2,
.legal__content h3 {
  margin-block: 1.75rem 0.6rem;
  font-weight: 700;
  color: var(--safe-ink);
}

.legal__content p { margin-block: 0 1rem; }
.legal__content ul,
.legal__content ol { margin-block: 0 1rem; padding-inline-start: 1.5rem; list-style: disc; }
.legal__content a { color: var(--safe-primary); text-decoration: underline; }

.legal__related {
  max-width: 52rem;
  margin-inline: auto;
  margin-block-start: 1.5rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--safe-line);
}

.legal__related-heading {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--safe-muted);
}

.legal__related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.legal__related-links a {
  font-weight: 700;
  color: var(--safe-primary);
}

.legal__toc { display: none; }

.legal__top {
  position: fixed;
  inset-inline-end: 24px;
  inset-block-end: 28px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--safe-line);
  border-radius: 999px;
  background: #fff;
  color: var(--safe-primary);
  cursor: pointer;
}

.legal__top[hidden] { display: none; }

@media (min-width: 1100px) {
  .legal__layout--with-toc {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
  }

  .legal__toc {
    display: block;
    position: sticky;
    inset-block-start: calc(var(--header-h) + 1.5rem);
    padding: 1rem;
    border: 1px solid var(--safe-line);
    border-radius: var(--safe-radius);
    background: #fff;
  }

  .legal__toc[hidden] { display: none; }

  .legal__toc-heading {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--safe-ink);
  }

  .legal__toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .legal__toc-nav a {
    font-size: 0.875rem;
    color: var(--safe-muted);
  }

  .legal__toc-nav a.is-active {
    color: var(--safe-primary);
    font-weight: 700;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.hero__subtitle p,
.section__lead p,
.site-footer__tagline p { margin: 0; }

@media (max-width: 899px) {
  .section {
    padding-block: 72px;
  }

  .section__title,
  .hero__title {
    font-size: 32px;
    line-height: 1.35;
  }

  .hero {
    min-height: 0;
  }

  .hero__grid {
    padding-block: 72px 48px;
    gap: 48px;
  }

  .about-card,
  .feature-tile {
    padding: 24px;
  }
}
