* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --background: #f4f6fa;
  --surface: #ffffff;
  --text: #172033;
  --muted: #596579;
  --line: #dce2ec;
  --brand: #365cf5;
  --brand-soft: #eef1ff;
  --notice: #fff8e8;
  --notice-line: #d89716;
  --danger-soft: #fff2f2;
  --danger-line: #c43d3d;
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

a {
  color: #244dcc;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.02);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1120px, 100%);
  min-height: 64px;
  margin: 0 auto;
  padding: 10px 22px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 40px;
  height: 25px;
  object-fit: cover;
  object-position: top;
}

.brand-name {
  font-size: 18px;
}

.document-title {
  flex: 0 1 auto;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}

.links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
}

.links a {
  color: #3c485b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.links a[aria-current="page"],
.links a:hover {
  color: var(--brand);
}

.page {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 30px 20px 64px;
}

.legal-card {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(26, 38, 67, 0.06);
}

.legal-header {
  padding-bottom: 24px;
}

h1,
h2,
h3 {
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.13;
}

h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  line-height: 1.4;
}

p,
li,
td,
th {
  font-size: 15.5px;
}

p {
  margin: 0 0 13px;
}

ul,
ol {
  margin: 10px 0 14px;
  padding-left: 24px;
}

li {
  margin: 7px 0;
  padding-left: 2px;
}

.meta {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.intro {
  max-width: 760px;
  margin: 0;
  color: #3f4c60;
  font-size: 17px;
}

.legal-card > section {
  padding: 26px 0 6px;
  border-top: 1px solid var(--line);
}

.callout {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: var(--brand-soft);
}

.callout.notice {
  border-left-color: var(--notice-line);
  background: var(--notice);
}

.callout.urgent {
  border-left-color: var(--danger-line);
  background: var(--danger-soft);
}

.callout p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  min-width: 150px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8f9fc;
  font-size: 13.5px;
}

tr:last-child td {
  border-bottom: 0;
}

.contact-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f9fc;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.site-footer {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 0 20px 34px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer a {
  margin: 0 6px;
  color: var(--muted);
}

.small-note {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .topbar-inner {
    gap: 12px;
    min-height: 58px;
    padding: 9px 14px;
  }

  .brand {
    gap: 7px;
  }

  .brand img {
    width: 38px;
    height: 24px;
  }

  .brand-name {
    font-size: 17px;
  }

  .document-title {
    min-width: 0;
    padding-left: 12px;
    font-size: 14px;
  }

  .links {
    display: none;
  }

  .page {
    padding: 14px 10px 40px;
  }

  .legal-card {
    padding: 24px 18px 32px;
    border-radius: 12px;
    box-shadow: none;
  }

  .legal-header {
    padding-bottom: 20px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 20px;
  }

  .intro {
    font-size: 16px;
  }

  p,
  li,
  td,
  th {
    font-size: 15px;
  }

  .legal-card > section {
    padding-top: 23px;
  }

  .site-footer {
    padding: 0 14px 28px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .site-footer {
    display: none;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .legal-card {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
