:root {
  color-scheme: light;
  --page-bg: #f5f8fc;
  --surface: #ffffff;
  --surface-raised: #f0f4fa;
  --border: #dbe3ee;
  --border-strong: #a9c5f5;
  --text: #172033;
  --muted: #667085;
  --accent: #397fe8;
  --premium: #b66b00;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  min-width: 320px;
  max-width: 100vw;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: radial-gradient(circle at 100% 0, rgb(57 127 232 / 12%), transparent 30rem), var(--page-bg);
  font-size: 15px;
  line-height: 1.62;
}

a { color: #286dcc; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover, a:focus-visible { color: #174f9e; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 68px;
  padding: 12px max(22px, calc((100vw - 980px) / 2));
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 90%);
  backdrop-filter: blur(18px);
  max-width: 100vw;
  overflow: hidden;
}

.brand {
  flex: 0 0 auto;
  color: #55b9ea;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .13em;
  text-decoration: none;
}

nav { display: flex; align-items: center; gap: 6px; }

nav a {
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

nav a:hover, nav a:focus-visible {
  color: var(--text);
  background: rgb(57 127 232 / 9%);
  text-decoration: none;
}

main { width: min(100% - 32px, 900px); max-width: 100%; margin: 0 auto; padding: 48px 0 64px; }
article { min-width: 0; max-width: 100%; }
h1, h2 { color: var(--text); line-height: 1.18; }

h1 {
  max-width: 780px;
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

h2 {
  margin: 42px 0 13px;
  font-size: 20px;
  letter-spacing: -.02em;
  scroll-margin-top: 92px;
}

h2::first-letter { color: var(--accent); }
p { margin: 0 0 12px; }

.document-meta { margin-bottom: 28px; color: var(--muted); font-size: 13px; }

.document-meta + p {
  margin-bottom: 30px;
  padding: 18px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  color: #344054;
  background: radial-gradient(circle at 100% 0, rgb(57 127 232 / 11%), transparent 48%), var(--surface);
  box-shadow: 0 12px 32px rgb(31 50 81 / 8%);
}

.clause { color: #344054; }
.clause strong { margin-right: 3px; color: var(--text); }
.bullet { margin-left: 25px; color: #344054; }
.bullet::first-letter { color: var(--accent); }
.document-link { margin: 9px 0; overflow-wrap: anywhere; }

.table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 16px 0 26px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgb(31 50 81 / 7%);
}

table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.45; }

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

th:last-child, td:last-child { border-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--text); background: var(--surface-raised); font-weight: 750; }
tbody tr:nth-child(even) td { background: #f9fbfe; }
tbody tr:hover td { background: rgb(57 127 232 / 5%); }

.legal-tariffs table:first-of-type th:nth-child(2),
.legal-tariffs table:first-of-type td:nth-child(2) {
  border-color: rgb(57 127 232 / 24%);
  background: rgb(57 127 232 / 7%);
}

.legal-tariffs table:first-of-type th:nth-child(2) { color: #286dcc; }

.legal-tariffs table:first-of-type th:nth-child(3),
.legal-tariffs table:first-of-type td:nth-child(3) {
  border-color: rgb(182 107 0 / 23%);
  background: rgb(245 174 53 / 9%);
}

.legal-tariffs table:first-of-type th:nth-child(3) { color: #9a5b00; }

.legal-tariffs table:first-of-type tbody tr:first-child td:nth-child(2),
.legal-tariffs table:first-of-type tbody tr:first-child td:nth-child(3) {
  font-size: 17px;
  font-weight: 800;
}

.legal-tariffs table:first-of-type tbody tr:first-child td:nth-child(2) { color: #286dcc; }
.legal-tariffs table:first-of-type tbody tr:first-child td:nth-child(3) { color: #9a5b00; }

footer {
  width: min(100% - 32px, 900px);
  margin: 0 auto;
  padding: 0 0 38px;
  color: var(--muted);
  font-size: 12px;
}

footer p { margin: 0; padding-top: 18px; border-top: 1px solid var(--border); }

@media (max-width: 760px) {
  .site-header { position: static; display: block; padding: 17px 16px 12px; }

  nav {
    width: 100%;
    margin-top: 11px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar { display: none; }
  nav a { flex: 0 0 auto; padding: 7px 9px; }
  main { width: min(100% - 28px, 900px); padding: 32px 0 48px; }
  h1 { font-size: clamp(28px, 9vw, 38px); }
  h2 { margin-top: 34px; font-size: 19px; scroll-margin-top: 16px; }
  .document-meta + p { padding: 16px; }
  .table-wrap { width: calc(100vw - 28px); border-radius: 13px; }
  table { min-width: 610px; }
  th, td { padding: 10px 11px; }
}

@media print {
  :root {
    color-scheme: light;
    --page-bg: #fff;
    --surface: #fff;
    --surface-raised: #f2f2f2;
    --text: #000;
    --muted: #555;
    --border: #bbb;
    --border-strong: #777;
  }

  body { color: #000; background: #fff; font-family: "Times New Roman", serif; font-size: 12pt; }
  .site-header, footer { display: none; }
  main { width: auto; padding: 0; }
  .document-meta + p, .table-wrap { border-color: #999; background: #fff; box-shadow: none; }
  .clause, .document-meta + p { color: #000; }
  a { color: #000; }
  h2, tr { break-inside: avoid; }
}
