/* Shared legal page styles — Fameo */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --surface: #f9f8fc;
  --border: #e5e0f0;
  --p1: #5C1190;
  --p2: #A0257A;
  --p3: #D93B6A;
  --text: #0f0f1a;
  --body: #3a3a52;
  --muted: #6b6b88;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Header */
.hero {
  background: linear-gradient(135deg, #5C1190 0%, #A0257A 55%, #D93B6A 100%);
  padding: 48px 24px 40px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .4);
  color: rgba(255, 255, 255, .9);
  padding: 4px 13px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  margin-bottom: 6px;
  overflow-wrap: break-word;
}

.hero .company {
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.hero-meta span {
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}

.hero-meta .pipe {
  color: rgba(255, 255, 255, .3);
}

/* Layout */
.wrapper {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 24px 72px;
  width: 100%;
}

/* TOC */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--p1);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
  overflow-wrap: break-word;
}

.toc-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--p1);
  margin-bottom: 12px;
}

.toc ol {
  padding-left: 18px;
}

.toc li {
  margin-bottom: 5px;
}

.toc a {
  color: var(--body);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .15s;
  overflow-wrap: break-word;
  word-break: break-word;
}

.toc a:hover {
  color: var(--p1);
}

/* Sections */
.section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 16px;
  scroll-margin-top: 16px;
  overflow-wrap: break-word;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-num {
  flex-shrink: 0;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.section h3 {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--p1);
  margin: 20px 0 7px;
}

.section p {
  color: var(--body);
  margin-bottom: 11px;
  font-size: 14.5px;
  overflow-wrap: break-word;
}

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

.section ul,
.section ol {
  padding-left: 17px;
  color: var(--body);
  font-size: 14.5px;
  overflow-wrap: break-word;
}

.section li {
  margin-bottom: 5px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.section strong {
  color: var(--text);
  font-weight: 600;
}

.section a {
  color: var(--p2);
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section a:hover {
  text-decoration: underline;
}

/* Info / warn boxes */
.info-box {
  background: #f5f1fd;
  border: 1px solid #d9ceee;
  border-left: 3px solid var(--p1);
  border-radius: 6px;
  padding: 11px 14px;
  margin: 12px 0;
  font-size: 14px;
  color: var(--body);
  overflow-wrap: break-word;
  word-break: break-word;
}

.info-box strong {
  color: var(--text);
}

.info-box a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.warn-box {
  background: #fffbf0;
  border: 1px solid #f0dfa0;
  border-left: 3px solid #c9930a;
  border-radius: 6px;
  padding: 11px 14px;
  margin: 12px 0;
  font-size: 14px;
  color: #5a4200;
  overflow-wrap: break-word;
  word-break: break-word;
}

.warn-box strong {
  color: #3d2c00;
}

.warn-box a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Contact card */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
  margin-top: 28px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.contact-card p {
  color: var(--body);
  margin-bottom: 4px;
  font-size: 14px;
  overflow-wrap: break-word;
}

.contact-card a {
  color: var(--p2);
  text-decoration: none;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Cookie grid */
.cookie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.cookie-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.cookie-card .icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.cookie-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}

.cookie-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Table wrapper & Table */
div:has(> .data-table),
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13.5px;
}

.data-table th {
  background: var(--surface);
  color: var(--p1);
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--border);
}

.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  vertical-align: top;
}

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

.data-table tr:hover td {
  background: #faf8ff;
}

/* Footer */
footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: break-word;
}

footer a {
  color: var(--p2);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  overflow-wrap: break-word;
}

footer a:hover {
  text-decoration: underline;
}

/* Back to top */
.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--p1), var(--p3));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 2px 10px rgba(92, 17, 144, .2);
  transition: transform .2s;
}

.back-top:hover {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .hero {
    padding: 36px 16px 28px;
  }

  .hero h1 {
    font-size: clamp(22px, 5.5vw, 28px);
    line-height: 1.25;
  }

  .hero-meta {
    gap: 6px 10px;
    margin-top: 12px;
  }

  .hero-meta span {
    font-size: 11px;
    line-height: 1.4;
  }

  .wrapper {
    padding: 24px 14px 48px;
  }

  .section {
    padding: 18px 14px;
    margin-bottom: 14px;
    border-radius: 6px;
  }

  .section-header {
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
  }

  .section-num {
    min-width: 26px;
    height: 26px;
    font-size: 11px;
    padding: 0 6px;
  }

  .section h2 {
    font-size: 15.5px;
    line-height: 1.35;
  }

  .section h3 {
    font-size: 11px;
    margin: 16px 0 6px;
  }

  .section p,
  .section li {
    font-size: 14px;
    line-height: 1.65;
  }

  .section ul,
  .section ol {
    padding-left: 18px;
  }

  .toc {
    padding: 16px 14px;
    margin-bottom: 24px;
    border-radius: 6px;
  }

  .toc ol {
    padding-left: 20px;
  }

  .toc a {
    font-size: 13px;
    line-height: 1.5;
  }

  .info-box,
  .warn-box {
    padding: 10px 12px;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 10px 0;
  }

  .contact-card {
    padding: 18px 14px;
    margin-top: 20px;
    border-radius: 6px;
  }

  .contact-card h2 {
    font-size: 15px;
  }

  .contact-card p {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .cookie-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 12px 0;
  }

  .cookie-card {
    padding: 14px;
  }

  .data-table {
    min-width: 480px;
    font-size: 12.5px;
  }

  .data-table th,
  .data-table td {
    padding: 7px 10px;
  }

  .data-table th {
    font-size: 11px;
  }

  footer {
    padding: 20px 14px;
    font-size: 12px;
  }

  footer div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px;
    margin-top: 10px;
  }

  footer a {
    margin: 0;
    padding: 2px 4px;
  }

  .back-top {
    bottom: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero-meta .pipe {
    display: none;
  }

  .hero-meta span:not(.pipe) {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, .12);
    border-radius: 4px;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .hero {
    padding: 30px 12px 24px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .wrapper {
    padding: 18px 10px 36px;
  }

  .section {
    padding: 14px 10px;
    margin-bottom: 10px;
  }

  .section-header {
    gap: 8px;
  }

  .section h2 {
    font-size: 14.5px;
  }

  .section p,
  .section li {
    font-size: 13.5px;
  }

  .toc {
    padding: 14px 10px;
  }

  .toc a {
    font-size: 12.5px;
  }

  .contact-card {
    padding: 14px 10px;
  }

  .contact-card p {
    font-size: 13px;
  }

  .info-box,
  .warn-box {
    padding: 9px 10px;
    font-size: 13px;
  }

  footer {
    padding: 18px 10px;
  }

  footer div {
    gap: 6px 10px;
  }
}