:root {
  --green: #174b33;
  --green-dark: #0e3322;
  --red: #a71920;
  --red-dark: #86141a;
  --paper: #fbfaf5;
  --white: #ffffff;
  --ink: #222821;
  --muted: #606a61;
  --line: #dde3d9;
  --shadow: 0 20px 55px rgba(14, 51, 34, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

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

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 68px);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3.2vw, 38px);
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

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

li + li {
  margin-top: 8px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 3px;
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: rgba(251, 250, 245, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  text-decoration: none;
}

.brand img {
  width: 224px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  text-decoration: none;
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--red);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.header-call:hover {
  color: var(--white);
  background: var(--red-dark);
}

.legal-hero {
  padding: clamp(58px, 8vw, 100px) clamp(22px, 7vw, 100px);
  color: var(--white);
  background: var(--green-dark);
}

.legal-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.legal-updated {
  display: block;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: clamp(40px, 6vw, 84px);
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) 0;
}

.legal-content {
  min-width: 0;
}

.legal-section {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-section + .legal-section {
  margin-top: 34px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-note {
  padding: 20px 22px;
  background: var(--white);
  border-left: 4px solid var(--red);
  box-shadow: 0 10px 30px rgba(14, 51, 34, 0.07);
}

.legal-note strong {
  color: var(--green-dark);
}

.legal-aside {
  align-self: start;
  display: grid;
  gap: 18px;
  position: sticky;
  top: 118px;
}

.legal-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-card p {
  margin-bottom: 14px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card-label {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-card a {
  font-weight: 750;
}

.legal-page-links {
  display: grid;
  gap: 10px;
}

.legal-page-links a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
}

.legal-page-links a:last-child {
  border-bottom: 0;
}

.legal-page-links a[aria-current="page"] {
  color: var(--red);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 30px clamp(18px, 5vw, 72px);
  color: var(--green-dark);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 210px;
}

.site-footer p {
  margin: 0;
}

.site-footer-copy {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.site-footer-legal {
  color: var(--muted);
  font-size: 13px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }

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

  .legal-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand img {
    width: 188px;
    margin: 0 auto;
  }

  .header-call {
    width: 100%;
  }

  .nav {
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    text-align: center;
  }

  .legal-layout {
    width: min(100% - 36px, 1180px);
  }

  .legal-aside {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-copy {
    justify-items: start;
    text-align: left;
  }

  .site-footer-links {
    justify-content: flex-start;
  }
}
