/* ==========================================================================
   Privacy Policy page — Legal & Privacy Center (dark theme)
   ========================================================================== */

body.legal-page {
  --legal-bg: #101415;
  --legal-bg-alt: #191c1e;
  --legal-bg-card: #1d2022;
  --legal-bg-card-soft: rgba(29, 32, 34, 0.8);
  --legal-border: rgba(68, 71, 77, 0.2);
  --legal-border-soft: rgba(68, 71, 77, 0.1);
  --legal-text: #e0e3e5;
  --legal-text-muted: #c5c6cd;
  --legal-accent: #97CEE2;
  --legal-accent-2: #8ED8EE;
  --legal-accent-ink: #002e6a;
  background: var(--legal-bg);
  color: var(--legal-text);
}

/* Navbar override */
body.legal-page .navbar {
  background: rgba(16, 20, 21, 0.8);
  border-bottom-color: rgba(68, 71, 77, 0.3);
}

body.legal-page .navbar .logo img {
  filter: brightness(0) invert(1);
}

body.legal-page .nav-links a {
  color: var(--legal-text-muted);
}

body.legal-page .nav-links a.active {
  color: var(--legal-accent);
  border-bottom-color: var(--legal-accent);
}

body.legal-page .btn-primary {
  background: var(--legal-accent);
  color: var(--legal-accent-ink);
}

/* --------------------------------------------------------------------------
   Page header
   -------------------------------------------------------------------------- */

.legal-header {
  padding: 160px 0 0;
  background: transparent;
  text-align: left;
}

.legal-header .container {
  border-bottom: 1px solid var(--legal-border);
  padding-bottom: 32px;
}

.legal-header h1 {
  font-size: 48px;
  color: var(--legal-text);
  letter-spacing: -0.96px;
  margin-bottom: 20px;
}

.legal-header p {
  font-size: 16px;
  color: var(--legal-text-muted);
  max-width: 672px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.legal-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.65px;
  color: var(--legal-accent-2);
}

.legal-meta img {
  width: 13px;
  height: 13px;
}

.legal-meta img[src*="icon-version-tag"] {
  width: 12px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Layout: sidebar + content
   -------------------------------------------------------------------------- */

.legal-layout {
  padding: 48px 0 96px;
}

.legal-layout .container {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.legal-sidebar {
  width: 256px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.legal-sidebar-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--legal-text-muted);
  margin-bottom: 16px;
  display: block;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.legal-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 12px 14px;
    font-size: 16px;
    font-weight: 700;
    color: #42A5CA;
    background: rgb(225 227 228 / 50%);
    border-left: 3px solid #42A5CA;
    transition: background-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.legal-nav a:hover {
  transform: translateX(2px);
}

.legal-nav a img {
  width: 7px;
  height: 7px;
}

.legal-download-card {
  background: rgb(225 227 228 / 50%);
    border: 1px solid #42A5CA;
    border-radius: var(--radius-md);
    padding: 17px;
}

.legal-download-card p {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.65px;
  color: var(--legal-text-muted);
  margin-bottom: 8px;
}

.legal-download-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.65px;
  color: var(--legal-accent);
  transition: opacity var(--duration) var(--ease);
}

.legal-download-card a:hover {
  opacity: 0.8;
}

.legal-download-card img {
  width: 12px;
  height: 12px;
}

/* --------------------------------------------------------------------------
   Legal content articles
   -------------------------------------------------------------------------- */

.legal-content {
  flex: 1;
  min-width: 0;
  max-width: 896px;
}

.legal-section {
  padding-top: 48px;
  border-top: 1px solid var(--legal-border-soft);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: none;
}

.legal-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.legal-section-title img {
  width: 22px;
  height: 27.5px;
}

/* Section icons are shared across icon-shield (0.8 ratio), icon-terms (~0.95),
   and icon-cookie (~1:1) — override per-icon so none get stretched/squashed. */
.legal-section-title img[src*="icon-terms"] {
  width: 22px;
  height: 23.2px;
}

.legal-section-title img[src*="icon-cookie"] {
  width: 22px;
  height: 22px;
}

.legal-section-title h2 {
  font-size: 24px;
  color: var(--legal-text);
}

.legal-content > .legal-section > p,
.legal-section article > p {
  font-size: 16px;
  color: var(--legal-text-muted);
  line-height: 1.625;
  margin-bottom: 24px;
}

.legal-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.legal-highlight-card {
  background: var(--legal-bg-card);
  border: 1px solid var(--legal-border);
  border-radius: var(--radius-sm);
  padding: 25px;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.legal-highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(151, 206, 226, 0.35);
}

.legal-highlight-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--legal-text);
  margin-bottom: 11px;
}

.legal-highlight-card h4 img {
  width: 18px;
  height: 18px;
}

.legal-highlight-card h4 img[src*="icon-data-usage"] {
  width: 16px;
  height: 20px;
}

.legal-highlight-card p {
  font-size: 14px;
  color: var(--legal-text-muted);
  line-height: 1.6;
  margin: 0;
}

.legal-section h3 {
  font-size: 20px;
  color: var(--legal-text);
  margin: 24px 0 16px;
}

.legal-section h3:first-of-type {
  margin-top: 0;
}

.legal-list {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-list li {
  font-size: 16px;
  color: var(--legal-text-muted);
  line-height: 1.625;
  display: list-item;
}

.legal-blockquote {
 background: rgb(177 182 190 / 30%);
    border-left: 4px solid #42A5CA;
    padding: 24px 24px 24px 28px;
    font-size: 16px;
    font-style: italic;
    color: var(--legal-text-muted);
    line-height: 1.625;
    margin-bottom: 24px;
}

.legal-table-wrap {
  border: 1px solid var(--legal-border);
  border-radius: 2px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--legal-border);
  padding: 16.5px 17px;
  text-align: left;
  font-size: 16px;
}

.legal-table thead {
  background: var(--legal-bg-card);
}

.legal-table th {
  color: var(--legal-text);
  font-weight: 700;
}

.legal-table td {
  color: var(--legal-text-muted);
}

.legal-table tbody tr:nth-child(even) {
 background: rgb(177 182 190 / 30%);
}

/* --------------------------------------------------------------------------
   Support CTA
   -------------------------------------------------------------------------- */

.legal-cta {
  background: rgba(151, 206, 226, 0.1);
  border: 1px solid rgb(142 216 238 / 59%);
  border-radius: var(--radius-sm);
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.legal-cta h4 {
  font-size: 16px;
  color: var(--legal-text);
  font-weight: 400;
  margin-bottom: 8px;
}

.legal-cta p {
  font-size: 16px;
  color: var(--legal-text-muted);
  margin: 0;
}

.legal-cta a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--legal-accent-2);
  color: var(--legal-accent-ink);
  font-weight: 700;
  font-size: 16px;
  padding: 12px 24px 12px 42px;
  border-radius: 2px;
  white-space: nowrap;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.legal-cta a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.legal-cta img {
  width: 20px;
  height: 16px;
}

@media (max-width: 900px) {
  .legal-layout .container { flex-direction: column; align-items: stretch; }
  .legal-sidebar { width: 100%; position: static; }
  .legal-content { max-width: 100%; }
  .legal-highlight-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Footer override
   -------------------------------------------------------------------------- */

body.legal-page .site-footer {
  background: #0b0f10;
  border-top: 1px solid var(--legal-border);
}

body.legal-page .footer-brand .logo {
  color: var(--legal-text);
}

body.legal-page .footer-brand p {
  color: var(--legal-text-muted);
}

body.legal-page .footer-col h6 {
  color: var(--legal-text);
}

body.legal-page .footer-col ul li a {
  color: var(--legal-text-muted);
  text-decoration: underline;
  transition: color var(--duration) var(--ease);
}

body.legal-page .footer-col ul li a:hover {
  color: var(--legal-text);
}

body.legal-page .footer-col.legal-current ul li a.current {
  color: var(--legal-accent);
}

body.legal-page .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: var(--legal-text-muted);
  justify-content: center;
}

/* style.css only sizes the old icon-social-1/2 filenames; this page's footer
   uses icon-social-x/linkedin/github, which were left unstyled (rendering at
   native SVG size). Scope a fix here rather than touching the shared file. */
body.legal-page .footer-social img[src*="icon-social-x"] {
  width: 18px;
  height: 18px;
}

body.legal-page .footer-social img[src*="icon-social-linkedin"] {
  width: 18px;
  height: 18px;
}

body.legal-page .footer-social img[src*="icon-social-github"] {
  width: 18px;
  height: 14.1px;
}
