/* ================================================================
   AORO SOLAR — Legal Pages (Privacy, T&C, Complaints, Cookies)
   UX Booster Module — HIES & MCS Compliant Style
   ================================================================ */

:root {
    --legal-green:        #1F6F5C;
    --legal-green-dark:   #174f42;
    --legal-green-light:  #a0ffd4;
    --legal-bg-dark:      #0f1c19;
    --legal-text:         #1a2e26;
    --legal-text-soft:    #4a5568;
    --legal-border:       rgba(31,111,92,0.12);
    --legal-radius:       12px;
    --legal-transition:   0.2s cubic-bezier(0.4,0,0.2,1);
}

html {
    scroll-behavior: smooth;
}

/* ── Outer Wrapper ── */
.aoro-legal-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--legal-text);
    width: 100%;
    background: #fff;
    line-height: 1.6;
}
.aoro-legal-wrap br {
    display: none !important;
}

/* ================================================================
   HERO BANNER (100% Width)
   ================================================================ */
.aoro-legal-hero {
    position: relative;
    background: 
        radial-gradient(ellipse at top left, rgba(31, 111, 92, 0.9) 0%, transparent 75%),
        radial-gradient(ellipse at bottom right, rgba(29, 169, 134, 0.3) 0%, transparent 70%),
        var(--legal-bg-dark);
    padding: 100px 0 80px;
    overflow: hidden;
}
.aoro-legal-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--legal-green) 30%, var(--legal-green-light) 65%, transparent 100%);
    z-index: 10;
}
.aoro-legal-hero-watermark {
    position: absolute;
    right: -5%;
    top: -20%;
    width: 600px;
    height: 600px;
    opacity: 0.05;
    color: var(--legal-green-light);
    pointer-events: none;
    z-index: 1;
    animation: floatWatermark 25s ease-in-out infinite alternate;
}
.aoro-legal-hero-watermark svg {
    width: 100%;
    height: 100%;
    filter: blur(2px);
}
@keyframes floatWatermark {
    0% { transform: translateY(0) rotate(-5deg) scale(1); }
    100% { transform: translateY(60px) rotate(15deg) scale(1.1); }
}
.aoro-legal-hero-inner {
    max-width: 1400px; /* Increased width */
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}
.aoro-legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(31,111,92,0.2);
    border: 1px solid rgba(31,111,92,0.3);
    color: var(--legal-green-light) !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    line-height: 1;
}
.aoro-legal-eyebrow svg {
    width: 12px; height: 12px;
    stroke-width: 2.5;
    display: block;
}
.aoro-legal-hero-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    color: #fff !important;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.aoro-legal-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.aoro-legal-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.6) !important;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}
.aoro-legal-meta-chip svg {
    width: 14px; height: 14px;
    stroke: var(--legal-green-light);
    stroke-width: 2.2;
    flex-shrink: 0;
}
.aoro-legal-meta-sep {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

/* ================================================================
   COMPLIANCE BAR
   ================================================================ */
.aoro-legal-compliance-bar {
    background: #f8faf9;
    border-bottom: 1px solid rgba(31,111,92,0.08);
    padding: 16px 0;
}

/* Temporarily hide HIES and MCS badges */
.aoro-legal-compliance-label + .aoro-legal-badge,
.aoro-legal-compliance-label + .aoro-legal-badge + .aoro-legal-badge {
    display: none !important;
}
.aoro-legal-compliance-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.aoro-legal-compliance-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--legal-text-soft) !important;
    line-height: 1;
}
.aoro-legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--legal-border);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--legal-green) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    line-height: 1;
    white-space: nowrap;
}
.aoro-legal-badge svg {
    width: 13px; height: 13px;
    stroke-width: 2.5;
    flex-shrink: 0;
}

/* ================================================================
   SINGLE COLUMN LAYOUT (100% WIDTH)
   ================================================================ */
.aoro-legal-layout {
    display: block; /* Removed grid */
    max-width: 1000px; /* Centered content for readability but 100% container */
    margin: 0 auto;
    padding: 60px 40px 120px;
}

/* ── Compact TOC ── */
.aoro-legal-toc {
    background: #f9fafb;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 60px;
}
.aoro-legal-toc-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--legal-green) !important;
    margin-bottom: 20px;
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.aoro-legal-toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px 20px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.aoro-legal-toc-list li { margin: 0 !important; }
.aoro-legal-toc-list a {
    display: flex;
    align-items: center;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--legal-text-soft) !important;
    text-decoration: none !important;
    padding: 4px 0;
    transition: color 0.2s;
}
.aoro-legal-toc-list a:hover {
    color: var(--legal-green) !important;
}

/* ── Body ── */
.aoro-legal-body {
    padding-left: 0; /* Removed sidebar offset */
}

.aoro-legal-section {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}

.aoro-legal-section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--legal-text) !important;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.aoro-legal-section-num {
    background: var(--legal-green);
    color: #fff !important;
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
}

.aoro-legal-subsection-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--legal-text) !important;
    margin: 40px 0 20px;
}

.aoro-legal-text {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563 !important;
    margin-bottom: 24px;
}

.aoro-legal-subtext {
    margin-left: 28px;
    padding-left: 18px;
    border-left: 2px solid #e5e7eb;
    font-size: 15.5px;
    color: #6b7280 !important;
}

.aoro-legal-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px !important;
}
.aoro-legal-list li {
    position: relative;
    padding-left: 28px !important;
    margin-bottom: 14px !important;
    font-size: 16px;
    color: #4b5563 !important;
}
.aoro-legal-list li::before {
    content: '';
    position: absolute;
    left: 4px; top: 11px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--legal-green);
}

/* ── Table ── */
.aoro-legal-table-wrap {
    margin: 32px 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}
.aoro-legal-table {
    width: 100%;
    border-collapse: collapse;
}
.aoro-legal-table th {
    background: #f9fafb;
    padding: 14px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280 !important;
    border-bottom: 1px solid #e5e7eb;
}
.aoro-legal-table td {
    padding: 14px 20px;
    font-size: 14.5px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

/* ── Contact Card ── */
.aoro-legal-contact-card {
    background: var(--legal-bg-dark);
    padding: 40px;
    border-radius: 20px;
    color: #fff;
    margin-bottom: 30px;
    margin-top: 30px;
}
.aoro-legal-contact-name {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
    display: block;
    color: #fff !important; /* FIXED: FORCE WHITE */
}
.aoro-legal-contact-row {
    display: flex;
    align-items: center; /* FIXED ALIGNMENT */
    gap: 14px;
    margin-bottom: 12px;
    font-size: 15px;
    color: rgba(255,255,255,0.8) !important;
}
.aoro-legal-contact-row svg {
    width: 18px; height: 18px;
    stroke: var(--legal-green-light);
    flex-shrink: 0;
}
.aoro-legal-contact-row a {
    color: var(--legal-green-light) !important;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .aoro-legal-layout { padding: 40px 20px; }
    .aoro-legal-toc-list { grid-template-columns: 1fr; }
    .aoro-legal-hero { padding: 60px 0 40px; }
    .aoro-legal-section-title { font-size: 24px; }
}


