/*
 * Styles for the static legal pages (Terms, Privacy, Acceptable Use).
 * The header and footer match the RoutiSync website design.
 */
:root {
  --text: #1f2a44;
  --muted: #5d6f91;
  --bg: #ffffff;
  --line: #e3e9f3;
  --accent: #1769e8;
  --navy: #10285f;
  --footer-bg: #0c224e;
  --footer-text: #aebfdb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

a { color: var(--accent); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.site-header__inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.site-brand img { display: block; width: 36px; height: 36px; }
.site-brand span { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: #263c68; font-size: 14px; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-actions { display: flex; align-items: center; gap: 16px; padding-left: 18px; border-left: 1px solid var(--line); }
.site-login { color: #263c68; font-size: 14px; font-weight: 600; text-decoration: none; }
.site-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 9px; background: linear-gradient(135deg, #2a83ff 0%, #1769e8 100%);
  color: #ffffff; font-size: 14px; font-weight: 800; text-decoration: none;
}

/* ---------- Document ---------- */
main.legal-content { max-width: 820px; margin: 0 auto; padding: 28px 16px 64px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.legal-tabs a {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: #263c68; font-size: 14px; font-weight: 600; text-decoration: none; background: #f6faff;
}
.legal-tabs a[aria-current="page"] { border-color: var(--accent); color: var(--accent); background: #edf6ff; }
h1 { color: var(--navy); font-size: 1.9rem; line-height: 1.2; margin: 0 0 4px; }
h2 { color: var(--navy); font-size: 1.2rem; margin: 2rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
h3 { font-size: 1rem; margin: 1.2rem 0 .3rem; }
.meta { color: var(--muted); margin: 0 0 1.5rem; }
.note { border-left: 4px solid var(--accent); padding: 8px 14px; margin: 1rem 0; background: rgba(23, 105, 232, .06); }
li { margin: .25rem 0; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 44px; background: var(--footer-bg); color: var(--footer-text); }
.site-footer__top { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px; padding-bottom: 32px; }
.site-brand--footer { color: #ffffff; }
.site-brand--footer img { width: 32px; height: 32px; filter: brightness(0) invert(1); }
.site-brand--footer span { font-size: 18px; }
.site-footer__about p { max-width: 300px; margin: 12px 0 0; font-size: 13px; line-height: 1.6; }
.site-footer__about a { color: #ffffff; text-decoration: none; }
.site-footer nav { display: grid; align-content: start; gap: 9px; }
.site-footer h2 { margin: 4px 0 6px; padding: 0; border: 0; color: #ffffff; font-size: 14px; }
.site-footer nav a { color: var(--footer-text); font-size: 13px; text-decoration: none; }
.site-footer nav a:hover { color: #ffffff; }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 24px;
  border-top: 1px solid rgba(174, 191, 219, 0.2); color: #8ea3c7; font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .site-actions { margin-left: auto; border-left: 0; padding-left: 0; }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-container { width: min(100% - 30px, 1240px); }
  .site-brand span { font-size: 19px; }
  .site-login { display: none; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
}
