:root {
  --brand: #07578c;
  --brand-deep: #074e7d;
  --ink: #062f4d;
  --white: #fff;
  --glass: rgba(255, 255, 255, .79);
  --glass-strong: rgba(255, 255, 255, .9);
  --shadow: 0 26px 80px rgba(0, 31, 53, .18);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: #83b8d7;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: #2d6d8c; text-underline-offset: .15em; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background-image: url("assets/strand.png");
  background-size: cover;
  background-position: center center;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(226, 244, 255, .11) 0%, rgba(255,255,255,0) 58%),
    linear-gradient(180deg, rgba(0, 24, 44, 0) 60%, rgba(1, 18, 31, .28) 100%);
}

.site-header {
  width: min(100% - 11vw, 1500px);
  margin: 0 auto;
  padding-top: clamp(30px, 5.4vh, 72px);
  display: flex;
  justify-content: flex-end;
}

.brand {
  display: block;
  width: clamp(290px, 29vw, 455px);
  filter: drop-shadow(0 2px 7px rgba(255,255,255,.18));
}
.brand img { display: block; width: 100%; height: auto; }

.farewell {
  width: min(100% - 11vw, 1500px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 3vh 0 10vh;
}

.farewell__panel {
  max-width: 1110px;
  text-shadow: 0 1px 1px rgba(255,255,255,.18);
}

.eyebrow {
  display: none;
  margin: 0 0 11px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 clamp(18px, 2.4vh, 27px);
  max-width: 970px;
  font-size: clamp(2rem, 2.45vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--brand-deep);
}

.farewell__copy {
  margin: 0;
  max-width: 1120px;
  font-size: clamp(1.07rem, 1.43vw, 1.56rem);
  line-height: 1.34;
  font-weight: 450;
  color: #075384;
}
.farewell__copy strong { font-weight: 600; }

.site-footer {
  width: min(100% - 11vw, 1500px);
  margin: 0 auto;
  padding: 0 0 max(22px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  color: rgba(255,255,255,.96);
  text-shadow: 0 1px 5px rgba(0,0,0,.32);
  font-size: clamp(.92rem, 1.1vw, 1.14rem);
}

.site-footer address {
  max-width: 900px;
  margin: 0;
  font-style: normal;
  line-height: 1.38;
}
.legal-nav { display: flex; align-items: center; gap: .7rem; white-space: nowrap; }
.legal-nav button {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-shadow: inherit;
  transition: opacity .18s ease, transform .18s ease;
}
.legal-nav button:hover, .legal-nav button:focus-visible { opacity: .76; transform: translateY(-1px); }
.legal-nav button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 2px; }

.legal-dialog {
  width: min(92vw, 820px);
  max-height: min(86svh, 840px);
  padding: 0;
  border: 0;
  border-radius: 29px;
  overflow: auto;
  color: #101820;
  background: rgba(243, 248, 251, .90);
  box-shadow: var(--shadow);
  backdrop-filter: blur(17px) saturate(115%);
  -webkit-backdrop-filter: blur(17px) saturate(115%);
}
.legal-dialog::backdrop {
  background: rgba(4, 31, 50, .28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.dialog__inner { position: relative; padding: clamp(27px, 4vw, 48px); }
.dialog__inner--privacy { padding-bottom: 42px; }
.dialog__close {
  position: sticky;
  float: right;
  top: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: -10px -10px 4px 16px;
  border: 1px solid rgba(9, 68, 104, .11);
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  color: var(--brand-deep);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 39, 65, .08);
}
.dialog__kicker {
  margin: 0 0 7px;
  color: #56717f;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.legal-dialog h2 {
  margin: 0 0 24px;
  color: var(--brand-deep);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.1;
}
.legal-card {
  padding: 25px 27px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 22px;
  background: rgba(255,255,255,.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  font-size: 1.02rem;
  line-height: 1.4;
}
.legal-card p { margin: 0 0 16px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card dl { margin: 18px 0 0; }
.legal-card dl div { margin: 0 0 13px; }
.legal-card dt { font-weight: 700; }
.legal-card dd { margin: 2px 0 0; }
.privacy-copy h3 { margin: 22px 0 6px; font-size: 1.03rem; color: #123f59; }
.privacy-copy h3:first-child { margin-top: 0; }
.privacy-note { margin-top: 23px !important; padding-top: 17px; border-top: 1px solid rgba(11,73,108,.16); color: #52656f; font-size: .9rem; }

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
    background-position: 48% center;
  }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.13) 33%, rgba(0,21,37,.04) 58%, rgba(1,18,31,.52) 100%);
  }
  .site-header, .farewell, .site-footer { width: min(100% - 38px, 680px); }
  .site-header { padding-top: max(24px, env(safe-area-inset-top)); justify-content: center; }
  .brand { width: min(82vw, 385px); }
  .farewell { align-items: flex-start; padding: 12vh 0 8vh; }
  .farewell__panel {
    margin: 0 -6px;
    padding: 22px 21px 23px;
    border: 1px solid rgba(255,255,255,.36);
    border-radius: 24px;
    background: rgba(244,250,253,.58);
    box-shadow: 0 18px 50px rgba(10,45,65,.10);
    backdrop-filter: blur(11px) saturate(110%);
    -webkit-backdrop-filter: blur(11px) saturate(110%);
  }
  h1 { font-size: clamp(1.85rem, 8vw, 2.7rem); }
  .farewell__copy { font-size: clamp(1rem, 4.35vw, 1.18rem); line-height: 1.42; }
  .site-footer { grid-template-columns: 1fr; gap: 12px; font-size: .9rem; }
  .site-footer .sep { display: none; }
  .site-footer address { max-width: 520px; }
  .legal-nav { padding-bottom: 4px; }
  .legal-dialog { width: calc(100vw - 24px); max-height: calc(100svh - 24px); border-radius: 22px; }
  .dialog__inner { padding: 24px 20px 28px; }
  .legal-card { padding: 20px 18px; border-radius: 18px; font-size: .96rem; }
}

@media (max-height: 620px) and (min-width: 761px) {
  .site-header { padding-top: 24px; }
  .brand { width: 310px; }
  .farewell { padding-bottom: 3vh; }
  .site-footer { padding-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Readability refinement: subtle light veil behind the farewell copy. */
@media (min-width: 761px) {
  .farewell__panel {
    position: relative;
    padding: clamp(26px, 2.5vw, 40px) clamp(30px, 3.1vw, 50px);
    margin-left: clamp(-50px, -3.1vw, -30px);
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 26px;
    background: linear-gradient(100deg, rgba(255,255,255,.76) 0%, rgba(255,255,255,.64) 72%, rgba(255,255,255,.42) 100%);
    box-shadow: 0 18px 55px rgba(0, 40, 66, .10), inset 0 1px 0 rgba(255,255,255,.55);
    backdrop-filter: blur(5px) saturate(106%);
    -webkit-backdrop-filter: blur(5px) saturate(106%);
  }
  h1 { color: #064b78; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
  .farewell__copy { color: #064d7a; text-shadow: 0 1px 0 rgba(255,255,255,.55); }
}

.privacy-status {
  margin: -2px 0 18px !important;
  color: #667984;
  font-size: .86rem;
}
