/* ============================================================================
   Shared stylesheet for the legal / policy pages.
   Inherits the main site's light corporate register (navy on white) so the
   policy pages do not look like they belong to a different company.
   ========================================================================= */

:root {
  --navy:       #0F2E5C;
  --navy-deep:  #0A2044;
  --navy-ink:   #12233C;
  --steel:      #1565A8;
  --steel-tint: #EDF3F9;
  --steel-edge: #C6D8E8;
  --ink:        #2E3742;
  --muted:      #5A6672;
  --rule:       #DCE3E9;
  --grey-bg:    #F4F6F8;
  --amber:      #965900;

  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;

  --s1: 0.5rem; --s2: 0.75rem; --s3: 1rem; --s4: 1.5rem;
  --s5: 2rem;   --s6: 3rem;    --s7: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 52rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

h1, h2, h3 { color: var(--navy-ink); margin: 0; line-height: 1.2; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(1.85rem, 4.2vw, 2.6rem); font-weight: 600; }
h2 { font-size: clamp(1.2rem, 2.3vw, 1.4rem); font-weight: 600; margin-top: var(--s6); margin-bottom: var(--s3); }
h3 { font-size: 1.0625rem; font-weight: 600; margin-top: var(--s5); margin-bottom: var(--s2); }

p, li { max-width: 68ch; }
p { margin: 0 0 var(--s3); }
a { color: var(--steel); }
a:hover { color: var(--navy); }

:where(a, button):focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 2px; }

ul, ol { margin: 0 0 var(--s3); padding-left: 1.35rem; }
li { margin-bottom: 0.45rem; }

dl { margin: 0 0 var(--s3); }
dt { font-weight: 600; color: var(--navy-ink); margin-top: var(--s3); }
dd { margin: 0.2rem 0 0; }

.val { font-family: var(--mono); font-size: 0.875em; }

.skip {
  position: absolute; left: var(--s3); top: -4rem;
  background: var(--navy); color: #fff; padding: var(--s2) var(--s3);
  z-index: 60; font-weight: 600; text-decoration: none;
  transition: top 140ms ease-out;
}
.skip:focus { top: var(--s3); }

/* ---------------------------------------------------------------- masthead */

.masthead { border-bottom: 1px solid var(--rule); background: #fff; }
.masthead__in { display: flex; align-items: center; gap: var(--s4); min-height: 4.25rem; }
.mark { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.mark__name { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.14em; color: var(--navy); }
.mark__sub { font-size: 0.5rem; font-weight: 500; letter-spacing: 0.19em; color: var(--muted); margin-top: 0.28rem; }
.masthead a.back { font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--navy); }
.masthead a.back:hover { color: var(--steel); }

/* -------------------------------------------------------------------- page */

.pagehead { padding-block: clamp(2.5rem, 6vw, 4rem) var(--s5); border-bottom: 1px solid var(--rule); }
.pagehead .updated { margin: var(--s3) 0 0; font-size: 0.875rem; color: var(--muted); }
.pagehead .lede { margin-top: var(--s4); font-size: 1.0625rem; color: var(--muted); }

.content { padding-block: var(--s5) var(--s7); }
.content > h2:first-child { margin-top: var(--s5); }

/* A standing notice that a signed contract outranks the website policy. */
.callout {
  margin: var(--s5) 0;
  padding: var(--s4);
  background: var(--steel-tint);
  border: 1px solid var(--steel-edge);
  border-radius: 4px;
}
.callout p { margin: 0; font-size: 0.9375rem; }
.callout p + p { margin-top: var(--s2); }
.callout strong { color: var(--navy-ink); }

/* Draft warning — must stay until a lawyer has signed the documents off. */
.draft {
  margin: var(--s5) 0;
  padding: var(--s4);
  background: #FFF6E8;
  border: 1px solid #E8C89A;
  border-radius: 4px;
}
.draft p { margin: 0; font-size: 0.9375rem; color: #4A3413; }
.draft strong { color: var(--amber); }

table.tbl { width: 100%; border-collapse: collapse; margin: var(--s4) 0; font-size: 0.9375rem; }
table.tbl caption { text-align: left; padding-bottom: var(--s2); color: var(--muted); font-size: 0.875rem; }
table.tbl th, table.tbl td { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--rule); vertical-align: top; }
table.tbl thead th { background: var(--navy); color: #fff; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
table.tbl tbody tr:nth-child(even) { background: var(--grey-bg); }
.tablewrap { overflow-x: auto; }

.contactbox {
  margin-top: var(--s5); padding: var(--s4);
  border: 1px solid var(--rule); border-radius: 4px; background: var(--grey-bg);
}
.contactbox h2 { margin-top: 0; }
.contactbox p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ footer */

.foot { background: var(--navy-deep); padding-block: var(--s5); }
.foot__in { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: baseline; justify-content: space-between; }
.foot__meta { font-size: 0.8125rem; color: #7E9BBC; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); list-style: none; margin: 0 0 var(--s3); padding: 0; width: 100%; }
.foot__links li { margin: 0; }
.foot__links a { font-size: 0.8125rem; color: #B9CBE0; text-decoration: none; }
.foot__links a:hover { color: #fff; text-decoration: underline; }
