/*
 * GRIGOTEC SRL — GDPR / Politica de Confidentialitate
 * Stiluri scoped pentru template page-gdpr.php (handle: grg-gdpr).
 * Partajat partial cu .grg-legal-* (vezi termeni-si-conditii.css).
 * Folosit DOAR tokens din global-styles.css.
 * ==========================================================================
 */

.grg-legal-page {
    background-color: var(--grg-bg);
    color: var(--grg-text);
}

/* ============================
   HERO
   ============================ */
.grg-legal-hero {
    background: linear-gradient(180deg, var(--grg-bg-alt) 0%, var(--grg-bg) 100%);
    padding: var(--grg-s-16) 0 var(--grg-s-10);
    text-align: center;
}

.grg-legal-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--grg-s-2);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: var(--grg-accent);
    font-weight: 600;
    margin: 0 0 var(--grg-s-3) 0;
}

.grg-legal-hero__eyebrow i {
    font-size: 0.95rem;
}

.grg-legal-hero__meta i {
    margin-right: 6px;
    color: var(--grg-accent);
}

.grg-legal-hero__title {
    font-family: var(--grg-font-display);
    color: var(--grg-accent-deep);
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    margin: 0 0 var(--grg-s-3) 0;
    font-weight: 700;
}

.grg-legal-hero__meta {
    color: var(--grg-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================
   CONTENT
   ============================ */
.grg-legal-content {
    padding: var(--grg-s-10) 0 var(--grg-s-20);
}

/* CUPRINS */
.grg-legal-toc {
    background-color: var(--grg-surface-warm);
    border: 1px solid var(--grg-border);
    border-radius: var(--grg-r-lg);
    padding: var(--grg-s-6) var(--grg-s-8);
    margin-bottom: var(--grg-s-12);
}

.grg-legal-toc h2 {
    font-family: var(--grg-font-display);
    font-size: 1rem;
    color: var(--grg-accent-deep);
    margin: 0 0 var(--grg-s-3) 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.grg-legal-toc ol {
    margin: 0;
    padding-left: var(--grg-s-5);
    columns: 2;
    column-gap: var(--grg-s-8);
}

.grg-legal-toc li {
    margin-bottom: var(--grg-s-2);
    break-inside: avoid;
}

.grg-legal-toc a {
    color: var(--grg-text);
    font-size: 0.95rem;
    line-height: 1.45;
}

.grg-legal-toc a:hover,
.grg-legal-toc a:focus {
    color: var(--grg-accent-deep);
    text-decoration: underline;
}

/* SECTIUNI */
.grg-legal-section {
    margin-bottom: var(--grg-s-12);
    scroll-margin-top: 100px;
}

.grg-legal-section h2 {
    font-family: var(--grg-font-display);
    color: var(--grg-accent-deep);
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    margin: 0 0 var(--grg-s-5) 0;
    padding-bottom: var(--grg-s-3);
    border-bottom: 2px solid var(--grg-border);
    font-weight: 600;
}

.grg-legal-section h3 {
    font-family: var(--grg-font-display);
    color: var(--grg-accent-deep);
    font-size: 1.15rem;
    margin: var(--grg-s-6) 0 var(--grg-s-3) 0;
    font-weight: 600;
}

.grg-legal-section p,
.grg-legal-section li {
    color: var(--grg-text);
    line-height: 1.75;
    font-size: 1rem;
}

.grg-legal-section p { margin: 0 0 var(--grg-s-4); }

.grg-legal-section ul,
.grg-legal-section ol {
    margin: 0 0 var(--grg-s-5);
    padding-left: var(--grg-s-6);
}

.grg-legal-section ul li,
.grg-legal-section ol li {
    margin-bottom: var(--grg-s-2);
}

.grg-legal-section a {
    color: var(--grg-accent-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.grg-legal-section a:hover,
.grg-legal-section a:focus { color: var(--grg-cta); }

/* INFO BOX */
.grg-legal-info {
    background-color: var(--grg-surface-warm);
    border: 1px solid var(--grg-border);
    border-radius: var(--grg-r);
    padding: var(--grg-s-5) var(--grg-s-6);
    margin: var(--grg-s-4) 0;
}

.grg-legal-info p { margin: 0 0 var(--grg-s-3); }
.grg-legal-info p:last-child { margin: 0; }

.grg-legal-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.grg-legal-info li {
    margin-bottom: var(--grg-s-2);
    font-size: 0.97rem;
    line-height: 1.6;
}

.grg-legal-info--accent {
    background-color: rgba(200, 137, 58, 0.10);
    border-left: 4px solid var(--grg-accent);
    border-color: rgba(200, 137, 58, 0.35);
}

/* TABEL */
.grg-legal-table-wrap {
    overflow-x: auto;
    margin: var(--grg-s-4) 0 var(--grg-s-6);
    border: 1px solid var(--grg-border);
    border-radius: var(--grg-r);
}

.grg-legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background-color: var(--grg-surface);
}

.grg-legal-table thead {
    background-color: var(--grg-bg-alt);
}

.grg-legal-table th,
.grg-legal-table td {
    padding: var(--grg-s-3) var(--grg-s-4);
    text-align: left;
    border-bottom: 1px solid var(--grg-divider);
    vertical-align: top;
}

.grg-legal-table th {
    font-family: var(--grg-font-display);
    color: var(--grg-accent-deep);
    font-weight: 600;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.grg-legal-table tbody tr:last-child td { border-bottom: 0; }

.grg-legal-table tbody tr:hover {
    background-color: var(--grg-bg);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
    .grg-legal-toc ol { columns: 1; }
    .grg-legal-section h2 { font-size: 1.3rem; }
}
