@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: #eef3fb;
  --text: #0f172a;
  --muted: #5b6b84;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(100, 116, 139, 0.34);
  --primary: #0f5f8f;
  --primary-dark: #0b486d;
  --accent: #6d5efc;
  --accent-soft: #ebe7ff;
  --shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 24px 60px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 28px 90px rgba(15, 23, 42, 0.12);
  --radius-sm: 18px;
  --radius-md: 26px;
  --radius-lg: 36px;
  --container: 1460px;
  --legal-bg: #f3f6fc;
  --legal-surface: rgba(255, 255, 255, 0.92);
  --legal-surface-strong: #ffffff;
  --legal-surface-soft: #edf3ff;
  --legal-text: #122033;
  --legal-muted: #5d6b82;
  --legal-line: rgba(84, 103, 134, 0.18);
  --legal-line-strong: rgba(84, 103, 134, 0.28);
  --legal-primary: #0f5f8f;
  --legal-accent: #6d5efc;
  --legal-shadow-sm: 0 14px 36px rgba(15, 23, 42, 0.07);
  --legal-shadow-md: 0 30px 90px rgba(15, 23, 42, 0.1);
  --legal-radius: 30px;
  --legal-container: 1460px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(109, 94, 252, 0.13), transparent 24%),
    radial-gradient(circle at right 12%, rgba(15, 95, 143, 0.12), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, #f3f6fc 55%, #eef4fb 100%);
  color: var(--legal-text);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--legal-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.legal-shell {
  min-height: 100vh;
}

.container,
.legal-container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    backdrop-filter 220ms ease;
}

.site-header-static {
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 98px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: auto;
  max-width: 150px;
  margin-left: -15px;
  transition:
    max-width 220ms ease,
    filter 220ms ease;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a,
.mobile-menu a {
  position: relative;
  color: var(--muted);
  font-weight: 600;
  transition: color 180ms ease;
}

.desktop-nav a {
  font-size: 20px;
}

.desktop-nav a::after,
.mobile-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: transform 180ms ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
  color: var(--text);
  text-decoration: none;
}

.desktop-nav a:hover::after,
.mobile-menu a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.65rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: 0;
  color: white;
  font-weight: 700;
  box-shadow: 0 16px 36px rgba(15, 95, 143, 0.2);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(15, 95, 143, 0.24);
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0 1rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-menu a {
  display: block;
  width: 100%;
  padding: 0.85rem 0;
  text-align: left;
}

.legal-main {
  padding: 8rem 0 5rem;
}

.legal-page-intro {
  padding: 2rem 0 1.5rem;
}

.legal-kicker {
  margin: 0;
  color: var(--legal-accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-page-intro h1 {
  margin: 1rem 0 1.2rem;
  max-width: 14ch;
  font-family: 'Sora', 'Manrope', system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.legal-intro {
  max-width: 760px;
  margin: 0;
  color: var(--legal-muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.legal-aside {
  position: sticky;
  top: 120px;
  align-self: start;
  display: grid;
  gap: 1rem;
}

.legal-panel {
  padding: 1.4rem;
  border: 1px solid var(--legal-line);
  border-radius: var(--legal-radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--legal-shadow-sm);
}

.legal-panel h2 {
  margin: 0 0 1rem;
  font-family: 'Sora', 'Manrope', system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.legal-panel p,
.legal-panel li {
  margin: 0;
  color: var(--legal-muted);
  line-height: 1.7;
}

.legal-panel ul {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-panel li a {
  font-weight: 700;
}

.legal-panel li[aria-current='page'] a {
  color: var(--legal-text);
}

.legal-article {
  padding: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 36px;
  background: var(--legal-surface);
  box-shadow: var(--legal-shadow-md);
}

.legal-article > :first-child {
  margin-top: 0;
}

.legal-article h2,
.legal-article h3,
.legal-article h4 {
  color: var(--legal-text);
  font-family: 'Sora', 'Manrope', system-ui, sans-serif;
  letter-spacing: -0.03em;
}

.legal-article h2 {
  margin: 2.4rem 0 1rem;
  font-size: 30px;
  line-height: 1.18;
}

.legal-article h3 {
  margin: 2.2rem 0 0.9rem;
  font-size: 1.45rem;
  line-height: 1.28;
}

.legal-article h4 {
  margin: 1.8rem 0 0.8rem;
  font-size: 1.15rem;
}

.legal-article p,
.legal-article li {
  color: var(--legal-text);
  font-size: 1rem;
  line-height: 1.9;
}

.legal-article p {
  margin: 0 0 1rem;
}

.legal-article strong {
  color: var(--legal-text);
}

.legal-article ul,
.legal-article ol {
  margin: 0 0 1.2rem;
  padding-left: 1.35rem;
}

.legal-article li + li {
  margin-top: 0.55rem;
}

.legal-article hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--legal-line);
}

.legal-article table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 1.2rem 0;
  border-collapse: collapse;
}

.legal-article th,
.legal-article td {
  min-width: 150px;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--legal-line);
  text-align: left;
  vertical-align: top;
}

.legal-article th {
  background: var(--legal-surface-soft);
  font-weight: 800;
}

.legal-article blockquote {
  margin: 1.4rem 0;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--legal-accent);
  border-radius: 18px;
  background: rgba(109, 94, 252, 0.08);
}

.legal-article details {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--legal-line);
  border-radius: 22px;
  background: var(--legal-surface-strong);
}

.legal-article summary {
  cursor: pointer;
  color: var(--legal-text);
  font-weight: 800;
}

.legal-article summary h3,
.legal-article summary p {
  display: inline;
  margin: 0;
}

.legal-article input[type='checkbox'] {
  display: none;
}

.legal-article details > *:not(summary) {
  margin-top: 1rem;
}

.legal-footnote {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--legal-line);
  color: var(--legal-muted);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-toggle,
  .mobile-menu:not([hidden]) {
    display: flex;
  }

  .mobile-menu:not([hidden]) {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .legal-article {
    padding: 1.4rem;
    border-radius: 24px;
  }

  .legal-panel {
    border-radius: 24px;
  }

  .legal-article h2 {
    font-size: 1.6rem;
  }

  .legal-article h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 640px) {
  .container,
  .legal-container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .header-inner {
    min-height: 84px;
  }

  .legal-main {
    padding-top: 7.5rem;
  }
}
