/* ==========================================================================
   Legal Pages – Shared styles for Privacy Policy, Terms of Service, etc.
   ========================================================================== */

/* ---- Layout ---- */
.text-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    align-items: flex-start;
    padding: 10px 20px 80px;
}

/* ---- Content typography ---- */
.legal-content {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.legal-content h2 {
    color: var(--primary-dark);
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-content h2 .section-num {
    font-size: 14px;
    color: var(--primary-darker);
    background: rgba(66, 201, 171, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.legal-content h3 {
    color: var(--primary-darker);
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.legal-content p,
.legal-content li {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 20px;
    margin-bottom: 25px;
}

.legal-content li {
    margin-bottom: 2px;
    line-height: 1.4;
}

/* ---- Links ---- */
.legal-content a {
    color: var(--primary-darker);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-medium);
    transition: all 0.2s;
}

.legal-content a:hover {
    background-color: rgba(66, 201, 171, 0.15);
    color: var(--primary-dark);
}

/* ---- Highlight box ---- */
.highlight-box {
    background-color: var(--background-light);
    border-left: 4px solid var(--primary-medium);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
}

.highlight-box p {
    margin: 0;
    font-weight: 500;
}

/* ---- Contact card ---- */
.contact-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-card p {
    margin-bottom: 8px;
}

/* ---- Sub-page hero ---- */
.sub-page-hero {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.sub-page-hero .hero-text {
    text-align: center;
    color: var(--primary-dark);
    font-size: 42px;
    margin-bottom: 15px;
}

.last-updated {
    color: var(--text-light);
    font-size: 14px;
    display: block;
}

/* ---- Table of contents ---- */
.toc {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.toc-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 15px;
}

.toc ol {
    list-style: none;
    padding: 0;
    counter-reset: toc-counter;
}

.toc ol li {
    counter-increment: toc-counter;
    margin-bottom: 8px;
}

.toc ol li a {
    color: var(--primary-darker);
    text-decoration: none;
    font-weight: 500;
}

.toc ol li a::before {
    content: counter(toc-counter, decimal-leading-zero) ". ";
    color: var(--primary-medium);
    font-weight: 700;
    margin-right: 8px;
}

.toc ol li a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ---- Data tables (privacy page) ---- */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 25px 0;
}

.data-flow-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    font-size: 16px;
}

.data-flow-table th {
    background: var(--primary-dark);
    color: #fff;
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
}

.data-flow-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.data-flow-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ---- Badges ---- */
.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-green  { background: #e6fffa; color: #2d7a6b; border: 1px solid #b2f5ea; }
.badge-blue   { background: #ebf8ff; color: #2c5282; border: 1px solid #bee3f8; }
.badge-amber  { background: #fffaf0; color: #c05621; border: 1px solid #feebc8; }
