@font-face {
  font-family: "Mynos Sans";
  src: url("../assets/fonts/NotoSans-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fff;
  --surface: #f4f7f6;
  --surface-strong: #e8f2ee;
  --ink: #172427;
  --muted: #627377;
  --line: #d9e3e2;
  --green: #0b755f;
  --green-dark: #075846;
  --display: Georgia, "Times New Roman", serif;
  --sans: "Mynos Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.72 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--green-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(11, 117, 95, 0.35); outline-offset: 3px; }
.legal-scroll-progress { position: fixed; inset: 0 0 auto; z-index: 20; height: 3px; background: transparent; }
.legal-scroll-progress span { display: block; width: 0; height: 100%; background: var(--green); transition: width 80ms linear; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 4.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem max(1.25rem, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(18px);
}

.legal-brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); font-weight: 760; text-decoration: none; }
.legal-brand img { width: 2.55rem; height: 2.55rem; border-radius: 0.75rem; }
.legal-header nav, .legal-footer nav { display: flex; flex-wrap: wrap; gap: 0.65rem 1.25rem; }
.legal-footer nav { align-content: start; }
.legal-footer nav strong { flex-basis: 100%; margin-bottom: 0.2rem; color: var(--ink); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-header nav a { color: var(--muted); font-size: 0.84rem; font-weight: 650; text-decoration: none; }
.legal-header nav a[aria-current="page"] { color: var(--green); }

main { width: min(1180px, calc(100% - 3rem)); margin: 0 auto; }
.legal-hero { max-width: 920px; padding: clamp(5rem, 9vw, 8rem) 0 clamp(3rem, 5vw, 4.5rem); }
.legal-kicker { margin: 0 0 1.2rem; color: var(--green); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.15em; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: 0; }
h1 { max-width: 15ch; margin: 0 0 1.4rem; font-size: 4.6rem; line-height: 1; }
.effective-date { margin: 0; color: var(--muted); font-weight: 650; }
.legal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; margin-top: 2rem; }
.legal-actions button, .hosted-document-action { min-height: 2.65rem; padding: 0.65rem 0.9rem; color: var(--ink); border: 1px solid var(--line); border-radius: 0.55rem; background: var(--paper); font: 650 0.85rem var(--sans); cursor: pointer; text-decoration: none; }
.legal-actions button:hover, .hosted-document-action:hover { color: var(--ink); border-color: #8fb8ac; background: var(--surface); }
.legal-actions [role="status"] { color: var(--green); font-size: 0.82rem; font-weight: 650; }
.privacy-contact { display: grid; width: min(100%, 34rem); gap: 0.15rem; margin-top: 2rem; padding: 1.25rem 1.4rem; border-left: 3px solid var(--green); background: var(--surface); }

.legal-layout { display: grid; grid-template-columns: 15rem minmax(0, 48rem); justify-content: space-between; gap: clamp(3rem, 7vw, 7rem); padding-bottom: 8rem; }
.legal-toc { position: sticky; top: 6.5rem; align-self: start; max-height: calc(100vh - 8rem); overflow: auto; padding-right: 1rem; }
.legal-toc strong, .other-legal-documents strong { display: block; margin-bottom: 0.85rem; color: var(--ink); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-toc ol, .legal-mobile-toc ol { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.legal-toc a, .legal-mobile-toc a { display: grid; grid-template-columns: 1.7rem 1fr; color: var(--muted); font-size: 0.78rem; line-height: 1.35; text-decoration: none; }
.legal-toc a:hover, .legal-mobile-toc a:hover { color: var(--green); }
.legal-toc a span, .legal-mobile-toc a span { color: var(--green); font-weight: 750; }
.legal-mobile-toc { display: none; }

.legal-document { min-width: 0; }
.legal-introduction { margin-bottom: 3.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); font-size: 1.06rem; }
.legal-document p { margin: 0 0 1.2rem; }
.legal-document ul, .legal-document ol { margin: 0 0 1.5rem; padding-left: 1.35rem; }
.legal-document li { margin-bottom: 0.45rem; padding-left: 0.35rem; }
.legal-document li::marker { color: var(--green); font-weight: 750; }
.legal-section { scroll-margin-top: 6.5rem; margin-bottom: 3.8rem; }
.legal-section h2 { margin: 0 0 1.35rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); font-size: 2.1rem; line-height: 1.15; }
.legal-section h2 span { color: var(--green); }
.other-legal-documents { display: grid; gap: 0.65rem; margin-top: 5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--surface); }
.other-legal-documents a[aria-current="page"] { font-weight: 750; }

.legal-footer { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 2rem; padding: 3rem max(1.5rem, calc((100vw - 1380px) / 2)); color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); font-size: 0.82rem; }
.legal-footer > div { display: grid; align-content: start; gap: 0.25rem; }
.legal-footer strong { color: var(--ink); }
.legal-footer a { width: fit-content; }

@media (max-width: 860px) {
  .legal-header { position: relative; align-items: flex-start; flex-direction: column; gap: 0.7rem; }
  main { width: min(100% - 2rem, 760px); }
  .legal-hero { padding-top: 4rem; }
  h1 { font-size: 3.2rem; }
  .legal-layout { grid-template-columns: 1fr; padding-bottom: 5rem; }
  .legal-toc { display: none; }
  .legal-mobile-toc { display: block; margin-bottom: 3rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--surface); }
  .legal-mobile-toc summary { cursor: pointer; font-weight: 750; }
  .legal-mobile-toc ol { margin-top: 1rem; }
  .legal-footer { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .legal-header nav { display: grid; gap: 0.45rem; }
  h1 { font-size: 2.1rem; }
  .legal-actions { align-items: stretch; flex-direction: column; }
  .legal-actions button, .hosted-document-action { width: 100%; text-align: center; }
}

@media print {
  :root { --paper: #fff; --ink: #111; --muted: #444; --line: #ccc; }
  .legal-header, .legal-actions, .legal-toc, .legal-mobile-toc, .other-legal-documents, .legal-footer { display: none !important; }
  body { font-size: 10pt; }
  main { width: auto; margin: 0; }
  .legal-hero { max-width: none; padding: 0 0 0.35in; }
  h1 { max-width: none; font-size: 28pt; }
  .legal-layout { display: block; padding: 0; }
  .legal-section { break-inside: avoid; margin-bottom: 0.25in; }
  .legal-section h2 { font-size: 16pt; }
}
