:root {
  color-scheme: light dark;
  --navy-950: #091a33;
  --navy-800: #14335d;
  --navy-700: #1b477e;
  --gold-500: #c89629;
  --gold-300: #f3d488;
  --paper: #fffdf8;
  --ink: #172033;
  --muted: #556174;
  --surface: #ffffff;
  --line: #d8dce3;
  --focus: #0f62fe;
  --measure: 72ch;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
}

a {
  color: var(--navy-700);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-950);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--navy-950);
  background: var(--gold-300);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  color: #fff;
  background: var(--navy-950);
  border-bottom: 0.35rem solid var(--gold-500);
}

.header-inner,
.document-shell,
.site-footer__inner {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.75rem;
}

.document-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.document-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.75rem;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.document-nav a:hover {
  color: var(--gold-300);
}

.document-shell {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.legal-article {
  max-width: var(--measure);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--navy-700);
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--navy-950);
  line-height: 1.15;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.lead {
  max-width: 60ch;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.document-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 2rem 0;
  list-style: none;
}

.document-list li {
  padding: 1rem 1.25rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 0.35rem solid var(--gold-500);
  border-radius: 0.35rem;
}

.document-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy-950);
  font-weight: 700;
  text-decoration: none;
}

.document-list li:hover {
  background: #f6f8fb;
}

.document-list p {
  margin: 0.1rem 0 0;
  color: var(--muted);
}

.document-meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.document-meta p {
  margin: 0.25rem 0 0;
}

.site-footer {
  color: #fff;
  background: var(--navy-950);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  padding-block: 1.5rem;
  font-size: 0.94rem;
}

.site-footer a {
  color: var(--gold-300);
}

@media (min-width: 52rem) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 5;
  }

  #ana-icerik {
    scroll-margin-top: 7rem;
  }
}

@media (max-width: 20rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-nav ul {
    display: grid;
    width: 100%;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1624;
    --ink: #edf2fa;
    --muted: #bdc9d9;
    --surface: #17243a;
    --line: #38506e;
    --navy-700: #a6cdfd;
    --navy-950: #07101f;
  }

  .document-list a,
  h1,
  h2 {
    color: var(--ink);
  }

  .document-list li:hover {
    background: #22344f;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    color-scheme: light;
    --paper: #fff;
    --ink: #000;
  }

  .skip-link,
  .site-header,
  .site-footer {
    display: none;
  }

  .document-shell {
    display: block;
    width: auto;
    padding: 0;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
