/* ==========================================================================
   Sinergia — Privacy Policy (Sinergia The Elite Club mobile app)
   Same design tokens as the main site (/) so both pages read as one brand.
   ========================================================================== */

:root {
  --background: #faf7f5;
  --surface: #ffffff;
  --foreground: #201a1c;
  --muted: #f1eae6;
  --muted-foreground: #7a7170;
  --border: #e6dcd7;
  --primary: #5f3049;
  --primary-foreground: #fbf3f6;
  --accent: #c98a9c;
  --accent-soft: #f2e2e6;
  --radius-sm: 0.6rem;
  --radius: 1.1rem;
  --radius-lg: 1.75rem;
  --shadow-sm: 0 1px 2px rgba(32, 20, 24, 0.06);
  --shadow: 0 8px 24px -8px rgba(32, 20, 24, 0.14);
  --container: 900px;
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.muted {
  color: var(--muted-foreground);
}

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 245, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 19px;
  width: auto;
}

.back-link {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .back-link {
    display: inline-flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.lang-toggle button {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  width: 22px;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.45;
  filter: grayscale(0.5);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.lang-toggle button svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-toggle button.active {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.05);
}

.lang-pill {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 16px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border);
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------- Policy hero ---------------------------------- */

[data-animate],
[data-reveal],
[data-reveal-item] {
  opacity: 0;
}

.policy-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.policy-hero .eyebrow {
  justify-content: center;
}

.policy-hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  margin: 0.7rem 0 0.9rem;
}

.policy-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

.app-downloads {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
  text-decoration: none;
}

.store-badge svg {
  flex-shrink: 0;
  color: var(--foreground);
}

.store-badge .txt {
  text-align: left;
  line-height: 1.15;
}

.store-badge .txt small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.store-badge .txt span {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--foreground);
}

/* ---------------------------------- Summary box ---------------------------------- */

.summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.9rem 2rem;
  margin: 0 0 3rem;
}

.summary-box h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.summary-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.summary-item .ico {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-item p {
  margin: 0;
  color: var(--muted-foreground);
}

.summary-item b {
  display: block;
  color: var(--foreground);
  margin-bottom: 0.1rem;
}

/* ---------------------------------- Layout: TOC + content ---------------------------------- */

.policy-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding-bottom: 5rem;
  align-items: start;
}

.policy-content,
.toc {
  min-width: 0;
}

.toc {
  position: sticky;
  top: 6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.toc-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  font-weight: 700;
  padding: 0.3rem 0.75rem 0.7rem;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.toc a svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.toc a:hover {
  color: var(--primary);
  background: var(--muted);
  text-decoration: none;
}

.toc a.active {
  color: var(--primary-foreground);
  background: var(--primary);
}

.toc a.active svg {
  opacity: 1;
}

.policy-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 6rem;
}

.policy-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.policy-section h2 .num {
  font-size: 0.8rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.policy-section p {
  color: var(--muted-foreground);
  margin: 0 0 0.9rem;
}

.policy-section ul {
  color: var(--muted-foreground);
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.policy-section li {
  margin-bottom: 0.4rem;
}

.policy-section li b {
  color: var(--foreground);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  background: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

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

.site-footer {
  background: #17111a;
  color: #ede2e6;
  padding: 3rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(237, 226, 230, 0.14);
}

.footer-brand .brand-logo {
  height: 17px;
  margin-bottom: 0.9rem;
}

.footer-brand p {
  max-width: 320px;
  color: rgba(237, 226, 230, 0.6);
  font-size: 0.85rem;
  margin: 0;
}

.footer-contact {
  font-size: 0.85rem;
  color: rgba(237, 226, 230, 0.75);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact a {
  color: #ede2e6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(237, 226, 230, 0.45);
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------------------------------- Responsive ---------------------------------- */

@media (max-width: 860px) {
  .policy-body {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
  }

  .toc-label {
    display: none;
  }

  .toc a {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .toc {
    display: none;
  }
}

@media (max-width: 560px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .policy-hero {
    padding: 2.5rem 0 2rem;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
