/* ============================================================
   OUTRO SYSTEMS STUDIO — css/legal.css
   Shared legal stylesheet for privacy.html and terms-of-service.html
   Dark console theme · Background #0B1016 · Text #E8EAED
   Legal pages load ONLY this stylesheet (never style.css)
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.75;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background-color: #0B1016;
  color: #E8EAED;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: #17C3B2;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #4FE3D3;
}

ul,
ol {
  list-style: none;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Scope isolation ---------- */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Content container ---------- */
.legal-content .container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-footer-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Legal header (div/header element, never section) ---------- */
.legal-header {
  background: #101820;
  background-image: linear-gradient(180deg, #0B1016 0%, #101820 100%);
  border-bottom: 2px solid #17C3B2;
}

.legal-header .legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.legal-header .legal-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.legal-header .legal-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-header .legal-brand-word {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #17C3B2;
  font-size: 19px;
}

.legal-header .legal-brand-cursor {
  display: inline-block;
  width: 9px;
  height: 16px;
  background-color: #17C3B2;
  vertical-align: -2px;
  animation: cursor-blink 1.1s steps(1, end) infinite;
}

.legal-header .legal-brand-caption {
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #17C3B2;
}

.legal-header .legal-header-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.legal-header .legal-header-links a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E8EAED;
}

.legal-header .legal-header-links a:hover {
  color: #17C3B2;
}

@keyframes cursor-blink {
  0%,
  100% {
    visibility: visible;
  }
  50% {
    visibility: hidden;
  }
}

/* ---------- Legal hero / title band ---------- */
.legal-page .legal-hero {
  background: #0B1016;
  border-bottom: 1px solid #0E4A45;
  padding: 64px 0 56px;
}

.legal-page .legal-hero .legal-hero-inner {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-page .legal-hero .legal-eyebrow {
  display: inline-block;
  background-color: #17C3B2;
  color: #0B1016;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 13px;
  margin-bottom: 22px;
}

.legal-page .legal-hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  color: #E8EAED;
  margin-bottom: 14px;
}

.legal-page .legal-hero .legal-updated {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #17C3B2;
}

/* ---------- Legal main content ---------- */
.legal-page .legal-content {
  background-color: #0B1016;
  padding: 60px 0 80px;
}

.legal-page .legal-content .legal-intro {
  font-size: 17px;
  color: #E8EAED;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #0E4A45;
}

/* ---------- Table of contents ---------- */
.legal-page .toc {
  background-color: #101820;
  border: 1px solid #0E4A45;
  border-left: 4px solid #17C3B2;
  padding: 26px 28px;
  margin-bottom: 52px;
}

.legal-page .toc .toc-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #17C3B2;
  margin-bottom: 14px;
}

.legal-page .toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.legal-page .toc li {
  flex: 0 0 auto;
  font-size: 14px;
}

.legal-page .toc li a {
  color: #E8EAED;
  border-bottom: 1px solid #0E4A45;
  padding-bottom: 2px;
}

.legal-page .toc li a:hover {
  color: #17C3B2;
  border-bottom-color: #17C3B2;
}

/* ---------- Legal sections ---------- */
.legal-page .legal-content section {
  margin-bottom: 44px;
}

.legal-page .legal-content section h2 {
  font-size: 26px;
  font-weight: 800;
  color: #17C3B2;
  margin-bottom: 16px;
  padding-top: 8px;
}

.legal-page .legal-content section p {
  font-size: 16px;
  line-height: 1.85;
  color: #E8EAED;
  margin-bottom: 16px;
}

.legal-page .legal-content section p:last-child {
  margin-bottom: 0;
}

.legal-page .legal-content section ul {
  margin: 0 0 16px 0;
  padding-left: 0;
}

.legal-page .legal-content section ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.75;
  color: #E8EAED;
}

.legal-page .legal-content section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  background-color: #17C3B2;
}

/* ---------- Legal footer ---------- */
.legal-footer {
  background: #0B1016;
  border-top: 2px solid #17C3B2;
}

.legal-footer .legal-footer-inner {
  padding-top: 32px;
  padding-bottom: 36px;
  text-align: center;
}

.legal-footer .legal-footer-legal {
  font-size: 13px;
  color: #E8EAED;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-footer .legal-footer-links {
  font-size: 13px;
  color: #17C3B2;
  line-height: 1.9;
}

.legal-footer .legal-footer-links a {
  color: #17C3B2;
}

.legal-footer .legal-footer-links a:hover {
  color: #4FE3D3;
}

.legal-footer .legal-footer-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background-color: #17C3B2;
  vertical-align: -2px;
  margin-bottom: 10px;
  animation: cursor-blink 1.1s steps(1, end) infinite;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .legal-header .legal-header-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .legal-content .container {
    padding: 0 18px;
  }

  .legal-header-inner {
    padding: 0 18px;
  }

  .legal-footer-inner {
    padding: 0 18px;
  }

  .legal-page .legal-hero .legal-hero-inner {
    padding: 0 18px;
  }

  .legal-page .toc ol {
    gap: 10px 16px;
  }
}
