@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --document-background: #ffffff;
  --header-background: #0c1724;
  --text: #20252b;
  --muted: #626b74;
  --accent: #176878;
  --line: #d8dde3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-background);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
}

.header {
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--header-background);
}

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

.logo {
  display: block;
  width: 180px;
  height: auto;
}

.back-link {
  color: #7beeff;
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.policy {
  padding: 48px 24px 64px;
}

.policy-document {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 56px 64px 64px; 
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.6;
}

.policy h1 {
  max-width: 720px;
  margin: 0 auto 12px;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
}

.document-meta {
  margin: 0 0 34px;
  padding-bottom: 24px;
  color: var(--muted);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.policy-section {
  padding: 22px 0 0;
}

.policy-section h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
}

.policy-section p {
  margin: 0 0 12px;
  text-align: justify;
}

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

.policy-section a {
  color: #0b5968;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.footer {
  padding: 30px 0;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--header-background);
  text-align: center;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 12px;
}

.footer-legal a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 520px);
  }

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

  .logo {
    width: 142px;
  }

  .back-link {
    font-size: 12px;
  }

  .policy {
    padding: 24px 14px 40px;
  }

  .policy-document {
    padding: 34px 22px 40px;
    font-size: 16px;
  }

  .policy h1 {
    font-size: 24px;
  }

  .policy-section {
    padding-top: 20px;
  }

  .policy-section h2 {
    font-size: 18px;
  }

  .policy-section p {
    text-align: left;
  }

  .footer-legal {
    flex-direction: column;
    gap: 8px;
  }

  .footer-separator {
    display: none;
  }
}
