:root {
  --navy-950: #051225;
  --navy-900: #071a36;
  --navy-800: #0b2850;
  --navy-700: #123f75;
  --blue-600: #245fcb;
  --blue-100: #e8f0ff;
  --orange-600: #f06b32;
  --orange-500: #ff7a3d;
  --orange-100: #fff0e8;
  --ink: #152641;
  --muted: #617188;
  --line: #dfe6ef;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --success: #19895f;
  --container: 1140px;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(16, 44, 81, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy-950);
  font-weight: 800;
  letter-spacing: -0.03em;
}

:focus-visible {
  outline: 3px solid rgba(54, 120, 238, 0.52);
  outline-offset: 4px;
}

.legal-container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  border-radius: 10px;
  background: var(--navy-950);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(218, 227, 239, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

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

.brand img {
  width: 140px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.login-link {
  color: var(--navy-800);
  font-size: 0.88rem;
  font-weight: 750;
  transition: color 0.2s ease;
}

.login-link:hover {
  color: var(--orange-600);
}

.primary-link,
.document-button {
  min-height: 43px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.primary-link,
.document-button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-500), #f15f28);
  box-shadow: 0 10px 24px rgba(240, 107, 50, 0.23);
}

.primary-link:hover,
.document-button:hover {
  transform: translateY(-2px);
}

.primary-link:hover,
.document-button.primary:hover {
  box-shadow: 0 14px 30px rgba(240, 107, 50, 0.32);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(62, 125, 229, 0.34), transparent 29%),
    radial-gradient(circle at 9% 92%, rgba(255, 122, 61, 0.12), transparent 25%),
    var(--navy-950);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, #000, transparent 80%);
}

.privacy-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(30, 169, 116, 0.25), transparent 28%),
    radial-gradient(circle at 8% 95%, rgba(54, 120, 238, 0.2), transparent 27%),
    var(--navy-950);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 370px;
  padding-block: 55px 62px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.breadcrumb {
  margin-bottom: 39px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8eabd2;
  font-size: 0.73rem;
  font-weight: 700;
}

.breadcrumb a {
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span[aria-current="page"] {
  color: #c7d7ed;
}

.document-type {
  margin-bottom: 10px;
  color: #ff9c70;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.privacy-hero .document-type {
  color: #79d9b4;
}

.legal-hero h1 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(2.75rem, 5vw, 4.7rem);
  line-height: 1.02;
}

.hero-summary {
  max-width: 720px;
  margin-bottom: 29px;
  color: #b5c8e2;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.72;
}

.document-meta {
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.7rem;
}

.document-meta span {
  color: #8fa9cc;
}

.document-meta strong {
  color: #edf4fd;
}

.legal-layout {
  padding-block: 66px 105px;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: 65px;
}

.legal-index {
  position: sticky;
  top: 112px;
}

.legal-index > p {
  margin-bottom: 15px;
  color: #8996a8;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-index nav {
  padding-left: 17px;
  display: grid;
  gap: 2px;
  border-left: 1px solid #d9e1eb;
}

.legal-index a {
  position: relative;
  padding: 6px 0;
  color: #6d7b90;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
  transition: color 0.2s ease, transform 0.2s ease;
}

.legal-index a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.legal-index a:hover {
  color: var(--navy-900);
  transform: translateX(3px);
}

.legal-index a:hover::before {
  background: var(--orange-500);
}

.legal-document {
  min-width: 0;
}

.legal-intro {
  padding: 32px 35px;
  border: 1px solid #dbe4ef;
  border-top: 4px solid var(--blue-600);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.privacy-intro {
  border-top-color: var(--success);
}

.legal-intro p {
  margin-bottom: 13px;
  color: #50617a;
  font-size: 0.94rem;
}

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

.legal-intro strong {
  color: var(--navy-900);
}

.legal-section {
  position: relative;
  padding: 59px 4px 54px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.legal-section:last-of-type {
  border-bottom: 0;
}

.section-number {
  margin-bottom: 9px;
  display: block;
  color: var(--orange-600);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.privacy-hero ~ .legal-layout .section-number {
  color: var(--success);
}

.legal-section h2 {
  margin-bottom: 24px;
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  line-height: 1.2;
}

.legal-section > p {
  margin-bottom: 18px;
  color: #53647c;
  font-size: 0.94rem;
}

.legal-section > p:last-child {
  margin-bottom: 0;
}

.legal-section > p a {
  color: var(--blue-600);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(36, 95, 203, 0.25);
  text-underline-offset: 3px;
}

.legal-section > p a:hover {
  text-decoration-color: currentColor;
}

.legal-section ul {
  margin: 23px 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.legal-section li {
  position: relative;
  padding-left: 25px;
  color: #53647c;
  font-size: 0.92rem;
}

.legal-section li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 3px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--orange-500);
  border-radius: 50%;
}

.legal-section li strong {
  color: #30435f;
}

.highlighted-section {
  margin-top: 46px;
  padding: 42px 38px;
  border: 1px solid #dce5f1;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.highlighted-section + .legal-section {
  padding-top: 69px;
}

.trial-notice,
.information-notice {
  margin-bottom: 27px;
  padding: 22px 24px;
  border: 1px solid #fed5c1;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff8f4, var(--orange-100));
}

.trial-notice strong,
.information-notice strong {
  margin-bottom: 5px;
  display: block;
  color: #963d19;
  font-size: 0.95rem;
}

.trial-notice p,
.information-notice p {
  margin: 0;
  color: #815039;
  font-size: 0.84rem;
}

.privacy-trial {
  margin-top: 27px;
  margin-bottom: 0;
  border-color: #cbe7dc;
  background: linear-gradient(135deg, #f4fbf8, #e8f7f1);
}

.privacy-trial strong {
  color: #176848;
}

.privacy-trial p {
  color: #406c5b;
}

.information-notice {
  margin-top: 29px;
  margin-bottom: 0;
  border-color: #cfdbef;
  background: linear-gradient(135deg, #f7faff, #edf3ff);
}

.information-notice strong {
  color: #274f91;
}

.information-notice p {
  color: #526b94;
}

.role-grid {
  margin: 30px 0 25px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.role-grid article {
  padding: 25px;
  border: 1px solid #dce4ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 51, 85, 0.045);
}

.role-grid article > span {
  margin-bottom: 8px;
  display: block;
  color: var(--success);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.role-grid h3 {
  margin-bottom: 11px;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.role-grid p {
  margin: 0;
  color: #66758b;
  font-size: 0.82rem;
  line-height: 1.65;
}

.data-category-list {
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.data-category-list article {
  padding: 21px 22px;
  border: 1px solid #e0e6ee;
  border-radius: 14px;
  background: #fff;
}

.data-category-list h3 {
  margin-bottom: 7px;
  color: #29415f;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.data-category-list h3::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(25, 137, 95, 0.09);
}

.data-category-list p {
  margin: 0;
  color: #6b788c;
  font-size: 0.79rem;
  line-height: 1.63;
}

.rights-grid {
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rights-grid span {
  min-height: 88px;
  padding: 17px;
  display: flex;
  align-items: center;
  color: #34506c;
  border: 1px solid #dbe5ef;
  border-radius: 13px;
  background: #f8fbfd;
  font-size: 0.77rem;
  font-weight: 750;
  line-height: 1.45;
}

.rights-grid span::before {
  content: "✓";
  width: 23px;
  height: 23px;
  margin-right: 9px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--success);
  font-size: 0.65rem;
  font-weight: 900;
}

.contact-section {
  margin-top: 32px;
  padding: 42px 38px;
  border: 0;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 93% 4%, rgba(61, 128, 235, 0.28), transparent 34%),
    var(--navy-900);
  box-shadow: 0 20px 45px rgba(7, 26, 54, 0.18);
}

.contact-section .section-number {
  color: #ff9b6d;
}

.privacy-hero ~ .legal-layout .contact-section .section-number {
  color: #74ddb5;
}

.contact-section h2 {
  color: #fff;
}

.contact-section > p {
  max-width: 700px;
  color: #b6c9e2;
}

.contact-actions {
  margin-top: 27px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.document-button.secondary {
  color: #e5effc;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.document-button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.11);
}

.related-document {
  margin-top: 42px;
  padding: 25px 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid #dce4ee;
  border-radius: 16px;
  background: #fff;
}

.related-document span,
.related-document strong,
.related-document p {
  display: block;
}

.related-document > div > span {
  margin-bottom: 3px;
  color: #8995a7;
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.related-document strong {
  color: var(--navy-900);
  font-size: 1rem;
}

.related-document p {
  margin: 4px 0 0;
  color: #758296;
  font-size: 0.76rem;
}

.related-document > a {
  flex: 0 0 auto;
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 850;
}

.related-document > a span {
  margin-left: 5px;
  display: inline;
  transition: margin-left 0.2s ease;
}

.related-document > a:hover span {
  margin-left: 9px;
}

.legal-footer {
  color: #6b7a91;
  border-top: 1px solid #dce3ec;
  background: #fff;
}

.footer-inner {
  min-height: 130px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.footer-brand img {
  width: 122px;
}

.footer-inner > p {
  margin: 0;
  font-size: 0.76rem;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 17px 23px;
}

.footer-inner nav a {
  color: #53647c;
  font-size: 0.74rem;
  font-weight: 700;
}

.footer-inner nav a:hover,
.footer-inner nav a[aria-current="page"] {
  color: var(--orange-600);
}

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

  .legal-index {
    position: static;
    padding: 20px 22px;
    border: 1px solid #dde5ef;
    border-radius: 15px;
    background: #fff;
  }

  .legal-index nav {
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 24px;
    border: 0;
  }

  .legal-index a::before {
    display: none;
  }

  .legal-index a:hover {
    transform: none;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
    padding-block: 32px;
  }

  .footer-inner nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

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

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

  .brand img {
    width: 112px;
  }

  .login-link {
    display: none;
  }

  .primary-link {
    min-height: 39px;
    padding-inline: 14px;
    font-size: 0.78rem;
  }

  .hero-inner {
    min-height: 330px;
    padding-block: 43px 50px;
  }

  .breadcrumb {
    margin-bottom: 31px;
  }

  .legal-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  .document-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .legal-layout {
    padding-block: 45px 75px;
  }

  .legal-index nav {
    grid-template-columns: 1fr;
  }

  .legal-intro {
    padding: 25px 23px;
  }

  .legal-section {
    padding-block: 47px 43px;
  }

  .legal-section h2 {
    font-size: 1.65rem;
  }

  .highlighted-section,
  .contact-section {
    margin-inline: -1px;
    padding: 31px 23px;
  }

  .role-grid,
  .data-category-list {
    grid-template-columns: 1fr;
  }

  .rights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions,
  .contact-actions .document-button {
    width: 100%;
  }

  .related-document {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .footer-inner nav {
    grid-column: auto;
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .legal-header .brand img {
    width: 102px;
  }

  .header-nav {
    gap: 10px;
  }

  .primary-link {
    padding-inline: 12px;
    font-size: 0.74rem;
  }

  .legal-section > p,
  .legal-section li,
  .legal-intro p {
    font-size: 0.88rem;
  }

  .rights-grid {
    grid-template-columns: 1fr;
  }

  .rights-grid span {
    min-height: 70px;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .legal-header,
  .legal-index,
  .contact-actions,
  .related-document,
  .legal-footer,
  .skip-link {
    display: none !important;
  }

  .legal-hero,
  .privacy-hero {
    color: #000;
    background: #fff;
  }

  .hero-inner {
    min-height: 0;
    padding: 0 0 25px;
  }

  .breadcrumb,
  .document-type {
    display: none;
  }

  .legal-hero h1,
  .hero-summary,
  .document-meta strong,
  .document-meta span {
    color: #000;
  }

  .legal-layout {
    width: 100%;
    padding: 0;
    display: block;
  }

  .legal-intro,
  .highlighted-section,
  .contact-section {
    border: 1px solid #aaa;
    box-shadow: none;
    break-inside: avoid;
  }

  .contact-section {
    color: #000;
    background: #fff;
  }

  .contact-section h2,
  .contact-section > p {
    color: #000;
  }

  .legal-section {
    break-inside: auto;
  }

  .legal-section h2,
  .role-grid article,
  .data-category-list article,
  .rights-grid span,
  .trial-notice,
  .information-notice {
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
