@font-face {
  font-family: "Unbounded";
  src: url("/fonts/Unbounded-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --page-bg: #fffdf9;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #5c5c5c;
  --border: #e8e8e8;
  --accent: #0078ce;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(160deg, #f0f7fe 0%, var(--page-bg) 32%, #fff9ee 100%);
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px max(20px, calc((100vw - 900px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.legal-home {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-home:hover,
.legal-home:focus-visible {
  text-decoration: underline;
}

.legal-shell {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto 64px;
}

.legal-document {
  padding: clamp(24px, 5vw, 56px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
}

.legal-title {
  margin: 0 0 20px;
  font-family: "Unbounded", Arial, sans-serif;
  font-size: clamp(23px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  white-space: pre-line;
}

.legal-edition {
  margin: 0 0 36px;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: pre-line;
}

h2 {
  margin: 40px 0 16px;
  font-family: "Unbounded", Arial, sans-serif;
  font-size: clamp(18px, 3vw, 23px);
  line-height: 1.4;
  scroll-margin-top: 80px;
}

.legal-block {
  margin: 0 0 20px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .legal-shell {
    width: min(100% - 20px, 900px);
    margin-top: 16px;
  }

  .legal-document {
    padding: 22px 18px 32px;
    border-radius: 16px;
  }

  h2 {
    margin-top: 32px;
  }
}
