/* ============================================================
   Shared legal stylesheet — privacy.html & terms-of-service.html
   Light theme · sky-blue accent
   ============================================================ */

.legal-page {
  background-color: #F6F9FC;
  color: #16222E;
}

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

body {
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #16222E;
  background-color: #F6F9FC;
  overflow-x: hidden;
}

a {
  color: #0284C7;
  text-decoration: none;
}

a:hover {
  color: #0EA5E9;
}

/* Scope isolation: legal page sections never inherit dark backgrounds */
.legal-page .legal-content section {
  background-color: transparent !important;
  color: #16222E;
}

/* ============================================================
   LEGAL HEADER
   ============================================================ */
.legal-header {
  background: linear-gradient(130deg, #0C4A6E 0%, #075985 100%);
  padding: 54px 0 46px;
}

.legal-header .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header .home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E0F2FE;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.legal-header .home-link:hover {
  color: #FFFFFF;
}

.legal-header .home-link::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0EA5E9;
}

.legal-header h1 {
  color: #FFFFFF;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 12px;
}

.legal-header .updated {
  color: #BAE6FD;
  font-size: 15px;
}

/* ============================================================
   LEGAL CONTENT
   ============================================================ */
.legal-content {
  padding: 48px 0 64px;
}

.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Table of contents */
.legal-toc {
  background: #FFFFFF;
  border: 1px solid #D9E6F2;
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 42px;
  box-shadow: 0 10px 30px rgba(12, 74, 110, 0.08);
}

.legal-toc h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0284C7;
  margin-bottom: 16px;
}

.legal-toc ul {
  list-style: none;
  columns: 1;
}

.legal-toc li {
  margin-bottom: 8px;
}

.legal-toc a {
  color: #41576B;
  font-size: 15px;
  font-weight: 600;
}

.legal-toc a:hover {
  color: #0EA5E9;
}

/* Sections */
.legal-content section {
  margin-bottom: 44px;
}

.legal-content section h2 {
  font-size: 24px;
  line-height: 1.3;
  color: #0C4A6E;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E0F2FE;
}

.legal-content section h3 {
  font-size: 18px;
  color: #16222E;
  font-weight: 700;
  margin: 22px 0 10px;
}

.legal-content section p {
  font-size: 16px;
  color: #41576B;
  margin-bottom: 16px;
}

.legal-content section ul,
.legal-content section ol {
  margin: 0 0 16px 24px;
}

.legal-content section li {
  font-size: 16px;
  color: #41576B;
  margin-bottom: 8px;
}

.legal-content section strong {
  color: #16222E;
}

.legal-content .contact-block {
  background: #E0F2FE;
  border-left: 4px solid #0EA5E9;
  border-radius: 8px;
  padding: 20px 22px;
  margin: 20px 0;
}

.legal-content .contact-block p {
  margin-bottom: 6px;
  color: #16222E;
}

.legal-content .contact-block p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   LEGAL FOOTER
   ============================================================ */
.legal-footer {
  background: #0B2433;
  padding: 34px 0;
}

.legal-footer .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.legal-footer .company {
  color: #9FC4DC;
  font-size: 14px;
}

.legal-footer .back-home {
  color: #E0F2FE;
  font-size: 14px;
  font-weight: 700;
}

.legal-footer .back-home:hover {
  color: #FFFFFF;
}

@media (max-width: 600px) {
  .legal-header h1 {
    font-size: 30px;
  }

  .legal-toc {
    padding: 20px;
  }
}
