:root {
  color-scheme: light;
  --rise-navy: #061b35;
  --rise-navy-panel: #0b406c;
  --rise-blue: #0b84cf;
  --rise-sky: #c7efff;
  --rise-ink: #08213d;
  --rise-muted: #557083;
  --rise-line: #c6dfea;
  --rise-page: #f4fbff;
}

* { box-sizing: border-box; }

html { background: var(--rise-navy); }

body.rise-legal {
  margin: 0;
  min-width: 320px;
  background: var(--rise-navy);
  color: var(--rise-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

.rise-legal a { color: #0068b3; }

.legal-skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  background: #fff;
  color: var(--rise-ink);
  transform: translateY(-160%);
}

.legal-skip:focus { transform: translateY(0); }

.legal-header {
  border-bottom: 1px solid #d9e8ef;
  background: #fff;
}

.legal-header-inner,
.legal-main-inner,
.legal-footer-inner {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
}

.legal-header-inner {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-brand { display: inline-flex; align-items: center; }

.legal-brand img {
  display: block;
  width: min(190px, 42vw);
  height: auto;
}

.legal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.65rem; }

.legal-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #9ed6ea;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  color: #0068b3 !important;
  font-weight: 700;
  text-decoration: none;
}

.legal-button:hover,
.legal-button:focus-visible { border-color: var(--rise-blue); background: #f4fbff; }

.legal-button-primary { border-color: var(--rise-blue); background: var(--rise-blue); color: #fff !important; }
.legal-button-primary:hover,
.legal-button-primary:focus-visible { background: #0068b3; }

.legal-main { padding: 2.5rem 0 3.25rem; }

.legal-hero {
  border: 1px solid #2f6f9e;
  border-radius: 8px;
  background: var(--rise-navy-panel);
  padding: clamp(1.5rem, 4vw, 3.25rem);
  color: #fff;
}

.legal-eyebrow {
  margin: 0 0 0.5rem;
  color: #54c4ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 500;
  line-height: 1.12;
}

.legal-hero .lead {
  max-width: 820px;
  margin: 1rem 0 0;
  color: var(--rise-sky);
  font-size: 1.08rem;
}

.legal-content { margin-top: 1.5rem; }

.legal-notice {
  border: 1px solid var(--rise-line);
  border-radius: 8px;
  background: #eaf7ff;
  padding: 1rem 1.2rem;
  color: #173c59;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.legal-card {
  border: 1px solid var(--rise-line);
  border-radius: 8px;
  background: #fff;
  padding: 1.35rem;
  box-shadow: 0 8px 20px rgba(0, 23, 54, 0.14);
}

.legal-card h2 { margin: 0; color: var(--rise-ink); font-size: 1.15rem; line-height: 1.3; }
.legal-card p { margin: 0.65rem 0 0; color: #36566d; }
.legal-card a { font-weight: 700; }

.legal-contact { margin-top: 1rem; }

.legal-footer {
  border-top: 1px solid #2f6f9e;
  background: #041426;
  color: #c7e6f4;
}

.legal-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0;
  font-size: 0.9rem;
}

.legal-footer a { color: #8bd8ff; font-weight: 700; }

@media (max-width: 700px) {
  .legal-header-inner { min-height: 98px; }
  .legal-actions { gap: 0.45rem; }
  .legal-button { min-height: 38px; padding: 0.45rem 0.75rem; font-size: 0.88rem; }
  .legal-main { padding: 1.25rem 0 2.25rem; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-footer-inner { align-items: flex-start; flex-direction: column; }
}
