:root {
  --brand: #1d6e5b;
  --brand-deep: #104739;
  --brand-soft: #deefe8;
  --ink: #18312c;
  --ink-soft: #506963;
  --line: rgba(24, 49, 44, 0.1);
  --shadow: 0 26px 58px rgba(16, 71, 57, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(29, 110, 91, 0.2), transparent 28%),
    radial-gradient(circle at bottom left, rgba(172, 213, 201, 0.22), transparent 30%),
    linear-gradient(180deg, #f4fcf9 0%, #ffffff 46%, #f6faf8 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.2fr) minmax(300px, 0.8fr);
  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.72);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 40px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(145deg, rgba(16, 71, 57, 0.98), rgba(29, 110, 91, 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(226, 244, 238, 0.92));
}

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

.eyebrow,
.section-label {
  margin: 0 0 14px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

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

.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.82);
  font-weight: 700;
  font-size: 0.9rem;
}

.app-icon-frame {
  width: 132px;
  height: 132px;
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(16, 71, 57, 0.08), rgba(29, 110, 91, 0.18));
  box-shadow: inset 0 0 0 1px rgba(24, 49, 44, 0.06);
}

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

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

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

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

.legal-layout {
  display: grid;
  grid-template-columns: 250px 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(16, 71, 57, 0.08);
}

.nav-title {
  margin: 0 0 4px;
  color: var(--brand-deep);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.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: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(16, 71, 57, 0.07);
}

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

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

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

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

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

.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(248, 255, 252, 0.96), rgba(231, 245, 239, 0.96));
  border: 1px solid rgba(29, 110, 91, 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.3rem;
    max-width: none;
  }

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

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