/* =========================================================
   RELAY STRATA — LEGAL PAGES
   ========================================================= */

:root {
  --relay-mint: #A7DCC1;
  --relay-orange: #F28A30;
  --relay-black: #111111;
  --relay-grey: #5f6664;
  --relay-border: #dfe8e3;
  --relay-bg: #f7f9f8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--relay-black);
  background: #fff;
  line-height: 1.6;
}

a { color: inherit; }

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

.legal-header-inner,
.legal-shell,
.legal-footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-header-inner {
  width: min(calc(100% - 48px), 1320px);
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
}

.legal-brand-mark {
  color: var(--relay-mint);
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.13em;
  padding-right: .13em;
}

.legal-brand > span:last-child::after {
  content: ".";
  color: var(--relay-orange);
}

.legal-header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
  font-weight: 600;
}

.legal-header-nav a {
  position: relative;
  padding: 0 16px;
  color: #fff;
  text-decoration: none;
}

.legal-header-nav a:first-child { padding-left: 0; }
.legal-header-nav a:last-child { padding-right: 0; }

.legal-header-nav a + a::before {
  content: "|";
  position: absolute;
  left: 0;
  color: rgba(255,255,255,.20);
}

.legal-header-nav a:hover {
  color: var(--relay-mint);
  text-decoration: none;
}

.legal-hero {
  background: var(--relay-bg);
  border-bottom: 1px solid var(--relay-border);
}

.legal-hero .legal-shell {
  padding-top: 64px;
  padding-bottom: 58px;
}

.legal-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.legal-stop { color: var(--relay-orange); }

.legal-effective {
  margin: 20px 0 0;
  color: var(--relay-grey);
  font-size: 15px;
}

.legal-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 64px;
  padding-top: 52px;
  padding-bottom: 80px;
}

.legal-article {
  max-width: 800px;
}

.legal-article h2 {
  margin: 48px 0 14px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.legal-article h2:first-child { margin-top: 0; }

.legal-article p { margin: 0 0 16px; }

.legal-article ul {
  margin: 8px 0 20px;
  padding-left: 22px;
}

.legal-article li { margin: 6px 0; }

.legal-promise {
  margin: 28px 0;
  padding: 24px 26px;
  border: 1px solid var(--relay-mint);
  box-shadow: 7px 7px 0 var(--relay-mint);
  background: #fff;
}

.legal-promise strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.legal-aside {
  position: sticky;
  top: 24px;
  align-self: start;
  border-left: 3px solid var(--relay-mint);
  padding-left: 18px;
  font-size: 13px;
}

.legal-aside strong {
  display: block;
  margin-bottom: 10px;
}

.legal-aside a {
  display: block;
  margin: 7px 0;
  text-decoration: none;
  color: var(--relay-grey);
}

.legal-aside a:hover { text-decoration: underline; }

.legal-contact {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--relay-bg);
  border: 1px solid var(--relay-border);
}

.legal-footer {
  width: 100%;
  background: #111111;
  color: #fff;
  border-top: 0;
}

.legal-footer-inner {
  width: min(calc(100% - 48px), 1320px);
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 13px;
}

/* Existing legal pages do not have separate logo markup in the footer.
   Render the same footer identity before the existing copyright text. */
.legal-footer-inner > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
}

.legal-footer-inner > span:first-child::before {
  content: "[ ]  RELAY STRATA.";
  display: inline-block;
  flex: 0 0 auto;
  color: transparent;
  background: linear-gradient(
    90deg,
    #A7DCC1 0%,
    #A7DCC1 15%,
    #FFFFFF 15%,
    #FFFFFF 96%,
    #F28A30 96%,
    #F28A30 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .035em;
  white-space: nowrap;
}

.legal-footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0;
}

.legal-footer a {
  position: relative;
  display: inline-block;
  padding: 0 18px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
}

.legal-footer a:first-child { padding-left: 0; }
.legal-footer a:last-child { padding-right: 0; }

.legal-footer a + a::before {
  content: "|";
  position: absolute;
  left: 0;
  color: rgba(255,255,255,.25);
}

.legal-footer a:hover {
  color: var(--relay-mint);
  text-decoration: none;
}

@media (max-width: 820px) {
  .legal-content { grid-template-columns: 1fr; gap: 28px; }
  .legal-aside { position: static; order: -1; }
  .legal-header-nav { display: none; }
  .legal-footer-inner {
    width: min(calc(100% - 32px), 1320px);
    min-height: 130px;
    padding: 26px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
  }
  .legal-footer-inner > span:first-child {
    flex-wrap: wrap;
    gap: 10px 20px;
  }
  .legal-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .legal-header-inner {
    width: calc(100% - 28px);
    min-height: 72px;
  }

  .legal-brand {
    font-size: 19px;
  }

  .legal-brand-mark {
    font-size: 28px;
  }

  .legal-footer a {
    padding: 0 10px;
  }
}
