/**
 * Legal pages shared styles — Emerald & Gold theme
 */

.legal-page {
    min-height: 100vh;
    padding: clamp(110px, 14vh, 150px) 0 clamp(60px, 8vw, 100px);
    position: relative;
    overflow: hidden;
}

.legal-page::before {
    content: '';
    position: fixed;
    top: -120px;
    right: -80px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, .1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.legal-page::after {
    content: '';
    position: fixed;
    bottom: -180px;
    left: -60px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, .07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.legal-page .container {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-muted);
    font-size: .87rem;
    font-weight: 500;
    margin-bottom: 36px;
    transition: color var(--trans);
}

.back-link:hover {
    color: var(--c-green-l);
}

/* Header */
.legal-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.legal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.legal-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--c-text) 30%, var(--c-green-l) 65%, var(--c-gold-l) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-meta {
    color: rgba(107, 143, 122, .6);
    font-size: .82rem;
}

/* Body */
.legal-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.legal-intro {
    background: linear-gradient(135deg, rgba(16, 185, 129, .06), rgba(245, 158, 11, .04));
    border: 1px solid rgba(16, 185, 129, .18);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 32px;
    font-size: 1rem;
    color: var(--c-text);
    line-height: 1.75;
}

.legal-intro strong {
    color: var(--c-green-l);
}

.legal-section {
    border-bottom: 1px solid var(--c-border);
    padding: 28px 0;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--c-text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section h2::before {
    content: '';
    display: block;
    width: 3px;
    height: 1.1em;
    background: linear-gradient(180deg, var(--c-green), var(--c-gold));
    border-radius: 2px;
    flex-shrink: 0;
}

.legal-section p {
    color: var(--c-muted);
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: .93rem;
}

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

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

.legal-section a {
    color: var(--c-green-l);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-section a:hover {
    color: var(--c-gold-l);
}

.legal-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
}

.legal-section ul li {
    display: flex;
    gap: 10px;
    color: var(--c-muted);
    font-size: .93rem;
    line-height: 1.65;
    padding-left: 0;
}

.legal-section ul li::before {
    content: '✦';
    color: var(--c-green);
    font-size: .65rem;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Contacts block inside legal */
.legal-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.legal-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    color: var(--c-muted);
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: border-color var(--trans);
}

.legal-contact-item:hover {
    border-color: rgba(16, 185, 129, .3);
}

.legal-contact-item a {
    color: var(--c-green-l);
    font-weight: 600;
}

.legal-contact-item a:hover {
    color: var(--c-gold-l);
}