:root {
  color-scheme: light;
  --navy: #0b1f33;
  --gold: #b98a2f;
  --ink: #111820;
  --muted: #59636d;
  --line: #d9dde1;
  --paper: #ffffff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #eef1f3;
}

body {
  width: min(960px, calc(100% - 2rem));
  margin: 1rem auto 3rem;
  padding: clamp(1.25rem, 4vw, 4rem);
  border-top: 5px solid var(--gold);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(11, 31, 51, .12);
  font: 16px/1.7 Arial, Helvetica, sans-serif;
}

#title-block-header h1 {
  margin: 0 0 .45rem;
  color: var(--navy);
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.05;
}

h1, h2 {
  scroll-margin-top: 1.5rem;
  color: var(--navy);
  line-height: 1.2;
}

h1 {
  margin: 3rem 0 1rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h2 {
  margin: 2rem 0 .55rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

p { margin: .65rem 0; }
a { color: #60430f; text-underline-offset: 3px; }

table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: .88rem;
}

th, td {
  padding: .65rem;
  border: 1px solid #c9ced3;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th { background: #eef1f3; color: var(--navy); }

body > p:first-of-type {
  margin-top: 0;
  color: var(--muted);
}

.legal-home-float {
  position: fixed;
  z-index: 100;
  right: 1.25rem;
  bottom: 1.25rem;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 48px;
  padding: .7rem 1.15rem;
  border: 1px solid #d7b45d;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 28px rgba(11, 31, 51, .3);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(215, 180, 93, .3);
}

.legal-home-float:hover,
.legal-home-float:focus { background: #173a57; }
.legal-home-float:focus,
.legal-home-float:focus-visible { outline: 4px solid #e6c773; outline-offset: 4px; }

@media (max-width: 640px) {
  body {
    width: 100%;
    margin: 0;
    padding: 1rem 1rem 7rem;
    border-top-width: 4px;
    box-shadow: none;
    font-size: 16px;
  }

  table { display: block; overflow-x: auto; }
  .legal-home-float {
    right: .85rem;
    bottom: 5.5rem;
    right: max(.85rem, env(safe-area-inset-right));
    bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 1rem));
    min-width: 92px;
    min-height: 48px;
    padding: .65rem 1rem;
  }
}

@media (min-width: 1200px) {
  body { width: min(1180px, calc(100% - 6rem)); }
  .legal-home-float {
    right: 3rem;
    bottom: 3rem;
    min-width: 156px;
    min-height: 68px;
    padding: 1rem 1.5rem;
    border-width: 2px;
    font-size: 1.25rem;
  }
}

@media (forced-colors: active) {
  .legal-home-float { border: 2px solid ButtonText; }
}
