:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #14213d;
  --muted: #5d6b82;
  --line: #dbe3ef;
  --brand: #193d8a;
  --accent: #1aa9ff;
  --success: #2fd38d;
  --danger: #d92d20;
  --shadow: 0 18px 48px rgba(20, 33, 61, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(26, 169, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(25, 61, 138, 0.25);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

button {
  font: inherit;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(219, 227, 239, 0.95);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

header .wrap,
main,
.footer {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
}

header .wrap {
  display: grid;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(20, 33, 61, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 33, 61, 0.08);
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 46px;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-eyebrow {
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 2px 0;
}

nav a {
  color: var(--brand);
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

main {
  padding: 34px 0;
}

.card {
  padding: 34px;
  border: 1px solid rgba(219, 227, 239, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.legal-doc {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.22;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.65rem);
}

h2 {
  margin: 32px 0 10px;
  padding-top: 4px;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
}

h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
}

.meta {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

p,
li,
td {
  color: #21304f;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

li + li {
  margin-top: 7px;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--brand);
}

.notice {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid rgba(26, 169, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(26, 169, 255, 0.08), rgba(47, 211, 141, 0.06));
  color: #21304f;
}

.table-wrap {
  width: 100%;
  margin: 16px 0 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

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

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

th {
  width: 25%;
  color: var(--brand);
  background: #f7fbff;
  font-weight: 800;
}

.inline-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(25, 61, 138, 0.18);
  border-radius: 10px;
  background: #ffffff;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.inline-action:hover {
  border-color: rgba(25, 61, 138, 0.34);
  box-shadow: 0 10px 24px rgba(20, 33, 61, 0.08);
}

.footer {
  padding: 8px 0 40px;
}

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

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(219, 227, 239, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(9, 20, 45, 0.18);
}

.cookie-consent__content {
  display: grid;
  gap: 4px;
}

.cookie-consent__content strong {
  color: var(--text);
  font-size: 1rem;
}

.cookie-consent__content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-consent__btn,
.cookie-consent__link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.cookie-consent__btn {
  border: 1px solid rgba(25, 61, 138, 0.16);
  cursor: pointer;
  min-width: 142px;
}

.cookie-consent__btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--success), var(--accent));
  color: #061327;
}

.cookie-consent__btn--ghost {
  background: #ffffff;
  color: var(--brand);
}

.cookie-consent__link {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(25, 61, 138, 0.28);
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  header {
    position: static;
    padding: 10px 14px 12px;
  }

  header .wrap,
  main,
  .footer {
    width: min(100% - 28px, 1040px);
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    padding: 6px 8px;
    border-radius: 12px;
  }

  .brand img {
    height: 38px;
  }

  .brand-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .brand-copy p {
    display: none;
  }

  nav {
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 0 2px;
    -webkit-overflow-scrolling: touch;
  }

  nav a {
    flex: 0 0 auto;
    font-size: 0.9rem;
  }

  main {
    padding: 20px 0;
  }

  .card {
    padding: 22px;
    border-radius: 16px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    margin-top: 26px;
  }

  .notice {
    padding: 12px;
  }

  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cookie-consent__link {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 0;
    justify-content: flex-start;
  }

  .cookie-consent__btn {
    width: 100%;
  }
}
