:root {
  --brand: #c4272f;
  --brand-deep: #7f1118;
  --brand-soft: #ffe2e4;
  --ink: #171717;
  --ink-soft: #575757;
  --surface: rgba(255, 255, 255, 0.9);
  --line: rgba(23, 23, 23, 0.1);
  --shadow: 0 24px 60px rgba(43, 11, 13, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Readex Pro", "Cairo", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(196, 39, 47, 0.2), transparent 28%),
    radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.08), transparent 26%),
    linear-gradient(180deg, #fff5f5 0%, #fffdfd 46%, #f7f4f4 100%);
}

a {
  color: inherit;
}

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

.legal-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.legal-hero {
  padding: 10px 0 36px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 40px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(145deg, rgba(20, 20, 20, 0.98), rgba(127, 17, 24, 0.99) 44%, rgba(196, 39, 47, 0.98));
  color: #ffffff;
}

.hero-card {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 234, 236, 0.92));
}

.eyebrow,
.section-label,
.nav-title,
h1,
h2,
h3 {
  font-family: "Cairo", sans-serif;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 1.05;
  max-width: 10ch;
}

.hero-text {
  max-width: 56ch;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  font-size: 0.92rem;
}

.app-icon-frame {
  width: 138px;
  height: 138px;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(196, 39, 47, 0.12), rgba(23, 23, 23, 0.08));
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.06);
}

.app-icon-frame img {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  object-fit: cover;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-right: 18px;
  color: var(--ink-soft);
  line-height: 1.8;
  font-weight: 600;
}

.feature-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.legal-nav {
  position: sticky;
  top: 20px;
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(43, 11, 13, 0.08);
}

.nav-title {
  margin: 0 0 4px;
  color: var(--brand-deep);
  font-size: 0.82rem;
}

.legal-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--brand-deep);
}

.legal-content {
  display: grid;
  gap: 20px;
}

.card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(43, 11, 13, 0.07);
}

.section-label {
  color: var(--brand-deep);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
}

p,
li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.95;
}

ul {
  margin: 0;
  padding: 0 18px 0 0;
}

.list-block + .list-block {
  margin-top: 20px;
}

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

.permission-grid article {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 248, 248, 0.96), rgba(255, 233, 235, 0.96));
  border: 1px solid rgba(196, 39, 47, 0.12);
}

.note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-grid,
  .legal-layout,
  .permission-grid {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 720px) {
  .legal-shell {
    width: min(100% - 20px, 1200px);
    padding: 18px 0 40px;
  }

  .hero-copy,
  .hero-card,
  .card {
    padding: 22px;
  }

  h1 {
    font-size: 2.35rem;
    max-width: none;
  }

  .hero-meta span,
  .contact-link {
    width: 100%;
    justify-content: center;
  }

  .app-icon-frame {
    width: 112px;
    height: 112px;
  }
}
