/* TODO: Keep these information pages calm; the policy text already supplies enough drama. */
.footer-page {
  margin: 0 auto;
  max-width: 1160px;
  padding: clamp(42px, 6vw, 76px) 24px clamp(72px, 8vw, 104px);
}

.footer-page__header {
  align-items: end;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.48fr);
  margin-bottom: 32px;
  padding: 0 4px 30px;
  position: relative;
}

.footer-page__header::after {
  background: linear-gradient(90deg, #fbbf24, rgba(251, 191, 36, 0));
  bottom: -1px;
  content: "";
  height: 2px;
  left: 4px;
  position: absolute;
  width: min(210px, 48%);
}

.footer-page__title {
  color: #f8fafc;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
  max-width: 820px;
  text-wrap: balance;
}

.footer-page__summary {
  color: #aebdce;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 42rem;
}

.footer-page__meta {
  color: #8192a7;
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-top: 12px;
}

.footer-page__layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(248px, 300px);
}

.footer-page__document {
  background:
    linear-gradient(145deg, rgba(30, 41, 59, 0.82), rgba(13, 22, 36, 0.92)),
    var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.22);
  min-width: 0;
  overflow: hidden;
  padding: clamp(28px, 4.5vw, 52px);
  position: relative;
}

.footer-page__document::before {
  background: linear-gradient(180deg, #fbbf24, rgba(251, 191, 36, 0));
  content: "";
  height: 120px;
  left: 0;
  position: absolute;
  top: 0;
  width: 2px;
}

.footer-page__document .cms-block,
.footer-page__document .cms-element {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.footer-page__document .content-section-public {
  margin-bottom: 42px;
}

.footer-page__document .content-section-public:last-child {
  margin-bottom: 0;
}

.footer-page__document .cms-block--composed--stacked {
  display: grid;
  min-width: 0;
}

.footer-page__document .cms-element--text {
  min-width: 0;
  padding: 34px 0;
  scroll-margin-top: 96px;
  width: 100%;
}

.footer-page__document .cms-element--text + .cms-element--text {
  border-top: 1px solid rgba(148, 163, 184, 0.11);
}

.footer-page__document .cms-element--text.el--featured {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.07), transparent 78%);
  border-left-color: #fbbf24;
  margin-left: -20px;
  padding: 28px 24px;
}

.footer-page__document--deduplicate-title > .cms-block:first-child > h2:first-child {
  display: none;
}

.footer-page--about .footer-page__document > .cms-block--hero:first-child .page-eyebrow,
.footer-page--about .footer-page__document > .cms-block--hero:first-child .page-title,
.footer-page--about .footer-page__document > .cms-block--hero:first-child + .cms-block--text > h2:first-child {
  display: none;
}

.footer-page--about .footer-page__document > .cms-block--hero:first-child {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 28px;
  padding-bottom: 28px;
}

.footer-page--about .footer-page__document > .cms-block--hero:first-child .page-subtitle {
  color: #d3dce7;
  font-size: 1.06rem;
  line-height: 1.72;
  max-width: 64ch;
}

.footer-page__document h2 {
  color: #f1f5f9;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.25;
  margin-bottom: 18px;
}

.footer-page__document h3 {
  color: #dce6f1;
  margin-top: 28px;
}

.footer-page__document .prose-text {
  color: #b8c5d4;
  font-size: 0.98rem;
  line-height: 1.82;
  max-width: 74ch;
}

.footer-page__document .prose-text p {
  margin: 0;
}

.footer-page__document .prose-text p + p {
  margin-top: 16px;
}

.footer-page__document .prose-text strong {
  color: #dce6f1;
  font-weight: 700;
}

.footer-page__document .prose-text ul,
.footer-page__document .prose-text ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.footer-page__document .prose-text li {
  padding-left: 5px;
}

.footer-page__document .prose-text li::marker {
  color: #f5c85b;
}

.footer-page__document .prose-text table {
  border-collapse: collapse;
  display: block;
  margin: 22px 0 0;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.footer-page__document .prose-text tbody,
.footer-page__document .prose-text thead {
  min-width: 620px;
}

.footer-page__document .prose-text th,
.footer-page__document .prose-text td {
  border: 1px solid rgba(148, 163, 184, 0.16);
  min-width: 150px;
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
}

.footer-page__document .prose-text th {
  background: rgba(148, 163, 184, 0.09);
  color: #e7edf5;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.footer-page__document .prose-text td {
  background: rgba(7, 15, 27, 0.22);
  color: #afbdcd;
  font-size: 0.88rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-page__document .prose-text blockquote {
  background: rgba(56, 189, 248, 0.055);
  border-left: 2px solid rgba(56, 189, 248, 0.55);
  color: #c7d5e4;
  margin: 20px 0 0;
  padding: 15px 18px;
}

.footer-page__document .prose-text blockquote p {
  margin: 0;
}

.footer-page__document a {
  color: #f5c85b;
  text-decoration-color: rgba(245, 200, 91, 0.42);
  text-underline-offset: 3px;
}

.footer-page__document a:hover {
  color: #ffe09a;
  text-decoration-color: currentColor;
}

.footer-page__empty {
  color: #aebdce;
  line-height: 1.7;
  margin: 0;
}

.footer-page-nav {
  min-width: 0;
}

.footer-page-nav__panel {
  background: rgba(10, 19, 32, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.footer-page-nav__heading {
  align-items: flex-start;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  display: grid;
  gap: 13px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 20px;
}

.footer-page-nav__mark {
  align-items: center;
  border: 1px solid rgba(251, 191, 36, 0.44);
  color: #f7cf70;
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  letter-spacing: 0.05em;
  width: 34px;
}

.footer-page-nav__heading h2 {
  color: #edf2f7;
  font-size: 0.96rem;
  line-height: 1.25;
  margin: 0 0 6px;
}

.footer-page-nav__heading p,
.footer-page-nav__help p {
  color: #8697ab;
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 0;
}

.footer-page-nav__links {
  display: grid;
  padding: 8px;
}

.footer-page-nav__links a {
  align-items: center;
  border-left: 2px solid transparent;
  color: #b6c3d1;
  display: flex;
  font-size: 0.82rem;
  gap: 10px;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 10px 10px 12px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.footer-page-nav__links a:hover {
  background: rgba(148, 163, 184, 0.07);
  color: #f8fafc;
  text-decoration: none;
}

.footer-page-nav__links a[aria-current="page"] {
  background: rgba(251, 191, 36, 0.08);
  border-left-color: #fbbf24;
  color: #f7cf70;
}

.footer-page-nav__links svg,
.footer-page-nav__contact svg {
  fill: none;
  flex: 0 0 auto;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 17px;
}

.footer-page-nav__help {
  background: rgba(30, 41, 59, 0.42);
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  padding: 18px 20px 20px;
}

.footer-page-nav__help h3 {
  color: #e5ebf2;
  font-size: 0.88rem;
  margin: 0 0 5px;
}

.footer-page-nav__contact {
  align-items: center;
  border: 1px solid rgba(251, 191, 36, 0.32);
  color: #f7cf70;
  display: flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 8px;
  justify-content: space-between;
  margin-top: 14px;
  min-height: 44px;
  padding: 10px 12px;
}

.footer-page-nav__contact:hover {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.54);
  color: #ffe2a0;
  text-decoration: none;
}

.footer-page a:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .footer-page__header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .footer-page__layout {
    grid-template-columns: 1fr;
  }

  .footer-page-nav__panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .footer-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-page__document {
    border-radius: 10px;
    padding: 26px 20px 30px;
  }

  .footer-page__document .cms-element--text {
    padding: 28px 0;
  }

  .footer-page__document .cms-element--text.el--featured {
    margin-left: -10px;
    padding: 22px 16px;
  }

  .footer-page__document .prose-text th,
  .footer-page__document .prose-text td {
    padding: 11px 12px;
  }

  .footer-page__title {
    font-size: clamp(2rem, 12vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-page-nav__links a {
    transition: none;
  }
}
