/* Shared styling for CARLOG's static legal pages (privacy.html, terms.html, cookies.html).
   Mirrors index.html's design tokens (Inter body font, JetBrains Mono chrome, #f54e00 accent)
   so these pages don't read as visually disconnected from the app. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f7f7f4;
  color: #26251e;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #f54e00; text-decoration: none; }
a:hover { color: #d04200; text-decoration: underline; }
a:focus-visible { outline: 2px solid #f54e00; outline-offset: 2px; }

/* header */
.legal-header {
  border-bottom: 1px solid #e6e5e0;
  background: rgba(247, 247, 244, 0.94);
  position: sticky;
  top: 0;
  z-index: 5;
}
.legal-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}
.legal-brand-mark {
  width: 22px; height: 22px; border-radius: 6px; background: #26251e;
  display: flex; align-items: center; justify-content: center;
  color: #f54e00; font-size: 13px; flex: none;
}
.legal-brand-name { font-size: 17px; font-weight: 600; letter-spacing: -0.4px; color: #26251e; }
.legal-back { font-size: 14px; font-weight: 600; color: #55534b; white-space: nowrap; }
.legal-back:hover { color: #26251e; }

/* main content */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 88px;
}
.legal-title { font-size: 34px; letter-spacing: -1px; margin: 0 0 8px; line-height: 1.15; }
.legal-updated {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #77746a; margin-bottom: 32px;
}
.legal-intro { font-size: 15.5px; line-height: 1.7; color: #3d3b32; margin-bottom: 32px; }

.legal-toc {
  background: #fff; border: 1px solid #e6e5e0; border-radius: 12px;
  padding: 18px 22px; margin-bottom: 40px;
}
.legal-toc-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.6px;
  text-transform: uppercase; color: #a09c8c; margin-bottom: 10px;
}
.legal-toc ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.legal-toc a { color: #26251e; }
.legal-toc a:hover { color: #f54e00; }

.legal-section { margin-bottom: 34px; scroll-margin-top: 84px; }
.legal-section h2 {
  font-size: 20px; letter-spacing: -0.4px; margin: 0 0 12px; padding-top: 6px;
}
.legal-section h3 { font-size: 15.5px; margin: 20px 0 8px; color: #26251e; }
.legal-section p { font-size: 15px; line-height: 1.7; color: #3d3b32; margin: 0 0 14px; }
.legal-section ul, .legal-section ol.legal-list {
  margin: 0 0 14px; padding-left: 20px; font-size: 15px; line-height: 1.7; color: #3d3b32;
}
.legal-section li { margin-bottom: 4px; }
.legal-section strong { color: #26251e; }

.legal-note {
  background: #faf4e4; border: 1px solid #e3d6b4; border-radius: 10px;
  padding: 14px 16px; font-size: 13.5px; line-height: 1.6; color: #6b5420; margin: 0 0 14px;
}
.legal-config { font-family: 'JetBrains Mono', monospace; font-size: 0.92em; color: #8b6310; background: #faf4e4; padding: 1px 5px; border-radius: 4px; }

/* footer */
.legal-footer { border-top: 1px solid #e6e5e0; }
.legal-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 32px 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: #77746a;
}
.legal-footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.legal-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.legal-footer-links a { color: #77746a; padding: 4px 0; }
.legal-footer-links a:hover { color: #f54e00; }
.legal-footer-sep { color: #d8d6cf; }

@media (max-width: 700px) {
  .legal-header-inner { padding: 14px 20px; }
  .legal-main { padding: 36px 20px 64px; }
  .legal-title { font-size: 26px; }
  .legal-footer-inner { padding: 26px 20px; justify-content: flex-start; }
}
