.edugen-language-document {
  margin: 0;
  background: #f7f7f7;
  color: #223651;
  font-family: "Google Sans Flex Variable", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.edugen-language-document *,
.edugen-language-document *::before,
.edugen-language-document *::after {
  box-sizing: border-box;
}

.edugen-legal-main {
  width: min(calc(100% - 56px), 1160px);
  margin: 0 auto;
  padding: 174px 0 50px;
}

.edugen-legal-head {
  max-width: 820px;
  margin-bottom: 38px;
}

.edugen-legal-kicker {
  margin: 0 0 15px;
  color: #2b68b5;
  font-size: 12px;
  font-weight: 730;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.edugen-legal-main h1 {
  margin: 0 0 19px;
  color: #1e2a3a;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 730;
  line-height: 1.12;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.edugen-legal-lead {
  margin: 0;
  max-width: 64ch;
  color: #53667f;
  font-size: 18px;
  line-height: 1.65;
}

.edugen-legal-grid {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.edugen-legal-index {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #e0e8f2;
  border-radius: 19px;
  background: #ffffffbd;
}

.edugen-legal-index a {
  padding: 9px 10px;
  border-radius: 9px;
  color: #3e5a7d;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}

.edugen-legal-index a:hover {
  background: #eef4fc;
  color: #205eaf;
}

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

.edugen-legal-content section {
  margin: 0 0 30px;
  padding: 29px 32px;
  border: 1px solid #e1e8f0;
  border-radius: 20px;
  background: #ffffffd6;
  scroll-margin-top: 130px;
}

.edugen-legal-content h2 {
  margin: 0 0 17px;
  color: #243b59;
  font-size: 21px;
  font-weight: 730;
  line-height: 1.4;
  letter-spacing: -.025em;
}

.edugen-legal-content p,
.edugen-legal-note p {
  margin: 13px 0 0;
  color: #4d617b;
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.edugen-legal-main a {
  color: #235fac;
  text-underline-offset: 3px;
}

.edugen-legal-main a:focus-visible {
  outline: 2px solid #2e78e6;
  outline-offset: 4px;
}

.edugen-legal-note {
  margin: 0 0 32px;
  padding: 19px 23px;
  border: 1px solid #ecd9be;
  border-radius: 16px;
  background: #fff7eb;
}

.edugen-legal-note strong {
  font-size: 14px;
}

.edugen-legal-note p {
  margin-top: 6px;
}

.edugen-receipt-main {
  min-height: 72vh;
  padding-top: 200px;
  padding-bottom: 100px;
  max-width: 880px;
}

.edugen-receipt-symbol {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 30px;
  border: 1px solid #c6dcf8;
  border-radius: 20px;
  background: #eaf3ff;
  color: #2564b7;
  font-size: 30px;
}

.edugen-receipt-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  font-size: 15px;
  font-weight: 650;
}

.edugen-receipt-links .edugen-receipt-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  background: #2e78e6;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 809.98px) {
  .edugen-legal-main {
    width: calc(100% - 36px);
    padding-top: 125px;
    padding-bottom: 20px;
  }
  .edugen-legal-head {
    margin-bottom: 25px;
  }
  .edugen-legal-lead {
    font-size: 16px;
  }
  .edugen-legal-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }
  .edugen-legal-index {
    position: static;
    padding: 10px;
  }
  .edugen-legal-index a {
    padding: 7px 9px;
  }
  .edugen-legal-content section {
    margin-bottom: 18px;
    padding: 22px 20px;
    border-radius: 17px;
    scroll-margin-top: 100px;
  }
  .edugen-legal-content h2 {
    font-size: 20px;
  }
  .edugen-legal-content p {
    font-size: 14px;
  }
  .edugen-receipt-main {
    padding-top: 140px;
    padding-bottom: 60px;
  }
}

@media (max-width: 360px) {
  .edugen-legal-main h1 {
    font-size: 32px;
  }
  .edugen-legal-content section {
    padding-inline: 17px;
  }
}

/* The skip link moves focus to the main area; it is a jump target, not a control, so it shows no ring. */
#main:focus { outline: none; }
