/* ================================================================
   PAGES LÉGALES — legal.css
   Compatible avec la charte Estrella Saité
   À inclure dans base.html.twig ou dans le bundle CSS principal
   ================================================================ */

/* ---- Hero ---- */
.legal-hero {
    background: linear-gradient(135deg, #0C420A 0%, #1a6b18 60%, #0C63B9 100%);
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.legal-hero__inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.legal-hero__tag {
    display: inline-block;
    background: rgba(251, 193, 19, 0.2);
    color: #FBC113;
    border: 1px solid rgba(251, 193, 19, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.legal-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #ffffff;
    font-weight: 900;
    margin: 0 0 12px;
    line-height: 1.1;
}

.legal-hero__sub {
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    margin: 0;
    font-style: normal;
}

.legal-hero__sub em {
    font-style: italic;
    color: rgba(255,255,255,0.5);
}

/* ---- Container ---- */
.legal-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ---- Notice box ---- */
.legal-notice {
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.legal-notice--info {
    background: rgba(12, 99, 185, 0.08);
    border-left: 4px solid #0C63B9;
    color: #1a3a5c;
}

.legal-notice--info strong {
    color: #0C63B9;
}

/* ---- Sections ---- */
.legal-section {
    margin-bottom: 44px;
}

.legal-section h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0C420A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 10px;
    border-bottom: 2px solid #FBC113;
    margin: 0 0 18px;
}

.legal-section p {
    color: #2c2c2c;
    line-height: 1.75;
    font-size: 0.95rem;
    margin: 0 0 14px;
}

.legal-section a {
    color: #0C63B9;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-section a:hover {
    color: #0C420A;
}

/* ---- Lists ---- */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.legal-list li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 0.95rem;
    color: #2c2c2c;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.legal-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #C3300C;
    font-weight: 700;
}

/* ---- Table ---- */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-bottom: 14px;
}

.legal-table thead tr {
    background: #0C420A;
    color: #fff;
}

.legal-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.legal-table tbody tr:nth-child(even) {
    background: rgba(12, 66, 10, 0.04);
}

.legal-table tbody td {
    padding: 10px 14px;
    vertical-align: top;
    color: #2c2c2c;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    line-height: 1.5;
}

.legal-table code {
    background: rgba(195, 48, 12, 0.08);
    color: #C3300C;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: 'Courier New', monospace;
}

/* ---- Rights grid ---- */
.legal-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.legal-right {
    background: #f9f9f7;
    border: 1px solid rgba(12, 66, 10, 0.12);
    border-top: 3px solid #0C420A;
    border-radius: 8px;
    padding: 18px 16px;
}

.legal-right__icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 8px;
}

.legal-right strong {
    display: block;
    color: #0C420A;
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.legal-right p {
    font-size: 0.82rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* ---- Back button ---- */
.legal-back {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.legal-back__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0C420A;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s, transform 0.15s;
}

.legal-back__btn:hover {
    background: #C3300C;
    transform: translateX(-3px);
    color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .legal-rights-grid {
        grid-template-columns: 1fr 1fr;
    }

    .legal-table {
        display: block;
        overflow-x: auto;
    }

    .legal-hero {
        padding: 60px 20px 40px;
    }
}
