:root {
  --page: #f4f7fb;
  --card: #ffffff;
  --ink: #111827;
  --muted: #526174;
  --line: #dce3ec;
  --nav: rgba(9, 13, 20, 0.72);
  --gold: #f6c84f;
  --teal: #0f8791;
  --link: #0f5fb8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.68;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 270px;
  background-image:
    linear-gradient(90deg, rgba(7, 10, 18, 0.92), rgba(7, 10, 18, 0.58)),
    url("https://raw.githubusercontent.com/bathalasindhur/alarmai-privacy-policy/main/assets/hero-warm.jpg");
  background-position: center;
  background-size: cover;
}

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

a:hover { text-decoration: underline; }

.site-header {
  width: min(920px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  background: var(--nav);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
}

.brand:hover { text-decoration: none; }

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(246, 200, 79, 0.24);
}

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

.nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  outline: none;
}

.wrap {
  width: min(920px, calc(100% - 36px));
  margin: 30px auto 56px;
}

.document {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.doc-label {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  margin: 30px 0 10px;
  font-size: 1.18rem;
}

p { margin: 10px 0; }

ul,
ol { margin: 8px 0 0 24px; }

li { margin: 7px 0; }

.muted { color: var(--muted); }

code {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}

.footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 640px) {
  body::before { height: 230px; }

  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav a { padding: 0 8px; }

  .wrap {
    width: calc(100% - 24px);
    margin-top: 18px;
  }

  .document { padding: 22px; }

  ul,
  ol { margin-left: 20px; }
}
