:root {
  color-scheme: light;
  --ink: #243b35;
  --muted: #69766f;
  --line: #e4e8e0;
  --paper: rgba(255, 255, 255, 0.94);
  --primary: #245d50;
  --primary-soft: #e7efe7;
  --cyan: #58715a;
  --success: #087f5b;
  --warning: #9a5a08;
  --shadow: 0 18px 55px rgba(36, 59, 53, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 0%, rgba(115, 150, 122, 0.08), transparent 30rem),
    radial-gradient(circle at 92% 22%, rgba(224, 196, 142, 0.08), transparent 28rem),
    #f8f7f3;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(210, 224, 241, 0.86);
  background: rgba(250, 252, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1160px, calc(100% - 36px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 7px 18px rgba(8, 99, 213, 0.22);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 650;
}

.topnav a[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-soft);
}

.shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 48px);
  color: #fff;
  border-radius: 28px;
  background: linear-gradient(128deg, #0a3877 0%, #086bd4 52%, #08a7ba 100%);
  box-shadow: 0 26px 70px rgba(8, 85, 165, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -90px;
  top: -150px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.06),
    0 0 0 92px rgba(255, 255, 255, 0.04);
}

.eyebrow {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.hero-summary {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(15px, 2vw, 17px);
}

.meta-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.10);
  font-size: 12.5px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 0;
}

.quick-card {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 10px 34px rgba(42, 80, 126, 0.06);
}

.quick-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.quick-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.toc {
  position: sticky;
  top: 88px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.toc-title {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 7px 9px;
  color: #42526a;
  border-radius: 9px;
  font-size: 13.5px;
  line-height: 1.4;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
  text-decoration: none;
}

.document {
  min-width: 0;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.notice {
  margin: 0 0 28px;
  padding: 15px 17px;
  border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  background: var(--primary-soft);
  color: #244363;
  font-size: 14px;
}

.notice.warning {
  border-left-color: #e49521;
  background: #fff8e8;
  color: #654514;
}

section + section {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid #edf2f8;
}

h2 {
  margin: 0 0 13px;
  color: #14253e;
  font-size: clamp(20px, 3vw, 25px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

h3 {
  margin: 25px 0 9px;
  color: #21354f;
  font-size: 17px;
}

p {
  margin: 0 0 13px;
}

ul,
ol {
  padding-left: 1.45em;
}

li + li {
  margin-top: 7px;
}

.data-table-wrap {
  overflow-x: auto;
  margin: 15px 0 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.6;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #e8eef5;
  text-align: left;
  vertical-align: top;
}

th {
  color: #334155;
  background: #f4f8fd;
  font-size: 12.5px;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.tag {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 7px;
  color: #285378;
  background: #eaf4ff;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.rights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}

.right-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
}

.right-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.right-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.steps {
  counter-reset: rights-step;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 42px;
  padding: 3px 0 17px 50px;
}

.steps li::before {
  counter-increment: rights-step;
  content: counter(rights-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: 12px;
  font-weight: 600;
  line-height: 1;
}

.contact-box {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #bcd9fa;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef6ff, #eefcfc);
}

.contact-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  padding: 9px 15px;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  font-weight: 700;
}

.contact-button:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
}

.footer {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 36px;
  color: var(--muted);
  text-align: center;
  font-size: 12.5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 15px;
  margin-bottom: 7px;
}

.footer a {
  color: #536985;
}

.footer .police-filing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer .police-filing img {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
    line-height: 1.72;
  }

  .topbar-inner,
  .shell,
  .footer {
    width: min(100% - 24px, 1160px);
  }

  .topbar-inner {
    min-height: 58px;
  }

  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .topnav a {
    padding: 7px 8px;
    font-size: 12.5px;
  }

  .shell {
    padding-top: 18px;
  }

  .hero {
    border-radius: 21px;
  }

  .hero::after {
    opacity: 0.55;
  }

  .meta-list {
    gap: 6px;
  }

  .quick-card,
  .toc {
    border-radius: 15px;
  }

  .toc {
    padding: 14px;
  }

  .toc ol {
    grid-template-columns: 1fr 1fr;
  }

  .toc a {
    padding: 6px;
    font-size: 12px;
  }

  .document {
    padding: 21px 17px 28px;
    border-radius: 19px;
  }

  section + section {
    margin-top: 32px;
  }

  .rights-grid {
    grid-template-columns: 1fr;
  }

  .data-table-wrap {
    margin-left: -2px;
    margin-right: -2px;
  }

  table {
    min-width: 620px;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

  .topbar,
  .toc,
  .quick-grid,
  .footer {
    display: none;
  }

  .shell {
    width: 100%;
    padding: 0;
  }

  .hero,
  .document {
    color: #000;
    background: #fff;
    border: 0;
    box-shadow: none;
  }

  .hero {
    padding: 0 0 20px;
  }

  .hero-summary,
  .eyebrow,
  .meta-list li {
    color: #333;
  }

  .layout {
    display: block;
    margin: 0;
  }

  .document {
    padding: 0;
  }
}
