/* ==========================================
   legal.css
   Stiluri pentru TermsOfService.cshtml si PrivacyPolicy.cshtml
   ========================================== */

.legal-page {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f5f0ff 100%);
    padding: 4rem 1.5rem 6rem;
}

.legal-container {
    max-width: 860px;
    margin: 0 auto;
}

/* Hero header */
.legal-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.legal-hero-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.legal-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
}

.legal-updated {
    color: #9ca3af;
    font-size: 0.88rem;
}

/* Card wrapper */
.legal-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 3rem;
    animation: legalFadeIn 0.3s ease;
}

@@keyframes legalFadeIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Sectiuni */
.legal-section {
    padding: 1.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.legal-section:first-child {
    padding-top: 0;
}

.legal-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
    flex-shrink: 0;
}

.legal-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin: 1.25rem 0 0.5rem;
}

.legal-section p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.legal-section ul {
    color: #4b5563;
    line-height: 1.8;
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.legal-section ul li {
    margin-bottom: 0.35rem;
}

.legal-section address {
    font-style: normal;
    color: #4b5563;
    line-height: 2;
    font-size: 0.95rem;
    background: #f9fafb;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border-left: 3px solid #667eea;
}

.legal-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Tabel GDPR */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.legal-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 0.85rem 1.1rem;
    text-align: left;
}

.legal-table td {
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    vertical-align: top;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:nth-child(even) td {
    background: #f9fafb;
}

/* Buton back */
.legal-back {
    margin-top: 2rem;
    text-align: center;
}

.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    padding: 0.65rem 1.75rem;
    border: 2px solid #667eea;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.legal-back-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    transform: translateY(-1px);
}

/* Responsive */
@@media (max-width: 640px) {
    .legal-page {
        padding: 2rem 1rem 4rem;
    }

    .legal-card {
        padding: 1.75rem 1.25rem;
    }

    .legal-hero h1 {
        font-size: 1.6rem;
    }

    .legal-table {
        font-size: 0.82rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 0.55rem 0.65rem;
    }
}

/* I Understand button */
.legal-understand-btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
    font-family: inherit;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.legal-understand-btn:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    transform: translateY(-1px);
}

.legal-understand-btn:active {
    transform: scale(0.98);
}
