:root {
  color-scheme: light;
  --cream: #fffaf3;
  --cream-strong: #f7ecdc;
  --forest-950: #10231e;
  --forest-900: #17352f;
  --forest-800: #21463d;
  --forest-700: #2e6053;
  --ink: #17352f;
  --muted: rgba(23, 53, 47, 0.72);
  --line: rgba(46, 96, 83, 0.16);
  --copper-600: #b16d48;
  --gold-300: #e2cba6;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family:
    Manrope,
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.94), rgba(247, 236, 220, 0.96)),
    var(--cream);
}

.page {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.88);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 42px;
  height: 42px;
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  margin-left: 10px;
  color: var(--forest-900);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.brand-word span:last-child {
  color: var(--copper-600);
}

.back-link,
.footer-link {
  color: var(--forest-800);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--copper-600);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.content {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 64px 28px 72px;
}

.hero {
  display: grid;
  gap: 28px;
  align-items: end;
  padding: 36px;
  border-radius: 8px;
  background: var(--forest-950);
  color: var(--cream);
}

h1 {
  margin: 0;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.description {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 250, 243, 0.76);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
}

.aside {
  max-width: 360px;
  padding: 18px;
  border: 1px solid rgba(255, 250, 243, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.06);
}

.aside-title {
  margin: 0;
  color: var(--gold-300);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.aside-body {
  margin: 10px 0 0;
  color: rgba(255, 250, 243, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.legal-content {
  margin-top: 26px;
  padding: 34px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 70px rgba(16, 35, 30, 0.08);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.legal-content p {
  margin: 0;
}

.legal-content section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 12px;
  color: var(--forest-900);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.25;
}

.legal-content ul {
  margin: 0;
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 8px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 24px 28px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.domain {
  margin: 0;
  color: rgba(23, 53, 47, 0.62);
  font-size: 14px;
  font-weight: 750;
}

@media (min-width: 840px) {
  .hero {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 760px) {
  .header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .content {
    padding: 42px 20px 54px;
  }

  .hero,
  .legal-content {
    padding: 24px;
  }

  h1 {
    font-size: 38px;
  }
}
