/* 1e1 Ders LegalPageEngine — Yasal Merkez v1.0 */

body.e1e1-legal-page-template #content,
body.e1e1-legal-page-template .site-content,
body.e1e1-legal-page-template #primary,
body.e1e1-legal-page-template .content-area,
body.e1e1-legal-page-template .site-main,
body.e1e1-legal-page-template .ast-container,
body.e1e1-legal-page-template .entry-content {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.e1e1-legal-page-template #secondary,
body.e1e1-legal-page-template .widget-area {
    display: none !important;
}

body.e1e1-legal-page-template .site-content > .ast-container {
    display: block !important;
}

.e1e1-legal-main {
    --legal-navy: #15324b;
    --legal-ink: #243b4c;
    --legal-muted: #617381;
    --legal-teal: #178f91;
    --legal-teal-soft: #dff1ed;
    --legal-sand: #f3e7d5;
    --legal-paper: #fffdf8;
    --legal-line: rgba(21, 50, 75, .13);
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--legal-ink);
    background: #f8f2e8;
}

.e1e1-legal-preview-banner {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    padding: 11px 20px;
    border-bottom: 1px solid rgba(111, 73, 31, .22);
    color: #65451f;
    background: #fff0cf;
    font-size: 13px;
    text-align: center;
}

.e1e1-legal-preview-banner strong { font-weight: 900; }

.e1e1-legal-shell {
    width: min(1180px, calc(100% - 56px));
    margin-inline: auto;
}

.e1e1-legal-hero {
    position: relative;
    display: flex;
    min-height: 560px;
    align-items: center;
    overflow: hidden;
    padding: 64px 0;
    border-bottom: 1px solid var(--legal-line);
    background:
        radial-gradient(circle at 82% 18%, rgba(23, 143, 145, .16), transparent 27%),
        linear-gradient(135deg, #fbf4e8 0%, #f4e6d2 52%, #e5eee8 100%);
}

.e1e1-legal-hero::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -170px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(23, 143, 145, .24);
    border-radius: 50%;
    box-shadow: 0 0 0 54px rgba(255, 255, 255, .16), 0 0 0 108px rgba(255, 255, 255, .1);
    pointer-events: none;
}

.e1e1-legal-hero .e1e1-legal-shell {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-left: max(28px, calc((100vw - 1180px) / 2));
    margin-right: auto;
}

.e1e1-legal-eyebrow,
.e1e1-legal-section__eyebrow,
.e1e1-legal-sidebar > span,
.e1e1-legal-contact > span,
.e1e1-legal-draft-notice > span,
.e1e1-legal-unavailable span {
    display: block;
    margin-bottom: 15px;
    color: var(--legal-teal);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.e1e1-legal-hero h1 {
    max-width: 820px;
    margin: 0;
    color: var(--legal-navy);
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 780;
    letter-spacing: -.045em;
    line-height: 1.03;
}

.e1e1-legal-headline {
    display: block;
    max-width: 760px;
    margin-top: 26px;
    color: var(--legal-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 500;
    line-height: 1.25;
}

.e1e1-legal-hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: #536b78;
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.75;
}

.e1e1-legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.e1e1-legal-meta span {
    padding: 8px 13px;
    border: 1px solid rgba(21, 50, 75, .1);
    border-radius: 999px;
    color: #506774;
    background: rgba(255, 255, 255, .56);
    font-size: 12px;
    font-weight: 750;
}

.e1e1-legal-layout {
    display: grid;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    gap: clamp(42px, 7vw, 92px);
    align-items: start;
    padding-top: clamp(64px, 8vw, 108px);
    padding-bottom: clamp(82px, 10vw, 140px);
}

.e1e1-legal-sidebar {
    position: sticky;
    top: 110px;
    padding: 25px;
    border: 1px solid var(--legal-line);
    border-radius: 24px;
    background: rgba(255, 253, 248, .74);
    box-shadow: 0 20px 60px rgba(21, 50, 75, .07);
}

.e1e1-legal-sidebar ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.e1e1-legal-sidebar a {
    display: block;
    padding: 11px 13px;
    border-radius: 12px;
    color: var(--legal-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.e1e1-legal-sidebar a:hover,
.e1e1-legal-sidebar a:focus-visible {
    color: var(--legal-navy);
    background: var(--legal-teal-soft);
    transform: translateX(3px);
}

.e1e1-legal-sidebar a[aria-current="page"] {
    color: #fff;
    background: var(--legal-navy);
}

.e1e1-legal-content {
    min-width: 0;
}

.e1e1-legal-section {
    padding: 0 0 clamp(50px, 6vw, 78px);
    margin: 0 0 clamp(50px, 6vw, 78px);
    border-bottom: 1px solid var(--legal-line);
    scroll-margin-top: 120px;
}

.e1e1-legal-section:last-of-type {
    margin-bottom: 0;
}

.e1e1-legal-section h2,
.e1e1-legal-contact h2,
.e1e1-legal-draft-notice h2,
.e1e1-legal-unavailable h1 {
    max-width: 760px;
    margin: 0 0 24px;
    color: var(--legal-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(29px, 3.6vw, 44px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.18;
}

.e1e1-legal-section p,
.e1e1-legal-contact p,
.e1e1-legal-draft-notice p,
.e1e1-legal-unavailable p {
    max-width: 790px;
    margin: 0 0 18px;
    color: #465d6a;
    font-size: 16px;
    line-height: 1.85;
}

.e1e1-legal-section ul {
    display: grid;
    gap: 12px;
    max-width: 800px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.e1e1-legal-section li {
    position: relative;
    padding: 15px 18px 15px 47px;
    border: 1px solid rgba(21, 50, 75, .09);
    border-radius: 15px;
    color: #405865;
    background: rgba(255, 253, 248, .76);
    line-height: 1.65;
}

.e1e1-legal-section li::before {
    content: "✓";
    position: absolute;
    top: 15px;
    left: 17px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    background: var(--legal-teal);
    font-size: 11px;
    font-weight: 900;
}

.e1e1-legal-note {
    max-width: 800px;
    margin-top: 28px;
    padding: 22px 24px;
    border-left: 4px solid var(--legal-teal);
    border-radius: 0 16px 16px 0;
    color: #395463;
    background: var(--legal-teal-soft);
    font-size: 15px;
    line-height: 1.7;
}

.e1e1-legal-contact,
.e1e1-legal-draft-notice {
    margin-top: 68px;
    padding: clamp(30px, 5vw, 52px);
    border: 1px solid var(--legal-line);
    border-radius: 28px;
    background: linear-gradient(135deg, var(--legal-paper), #e9f1eb);
    box-shadow: 0 24px 70px rgba(21, 50, 75, .08);
}

.e1e1-legal-contact a {
    color: var(--legal-teal);
    font-weight: 800;
}

.e1e1-legal-unavailable {
    min-height: 62vh;
    display: grid;
    align-items: center;
    padding: 90px 0;
    background: linear-gradient(135deg, #fbf4e8, #e7eee8);
}

.e1e1-legal-unavailable a {
    display: inline-flex;
    margin-top: 10px;
    padding: 13px 20px;
    border-radius: 999px;
    color: #fff;
    background: var(--legal-navy);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 900px) {
    .e1e1-legal-shell {
        width: min(760px, calc(100% - 40px));
    }

    .e1e1-legal-hero .e1e1-legal-shell {
        margin-inline: auto;
    }

    .e1e1-legal-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .e1e1-legal-hero {
        min-height: 0;
        padding: 72px 0 64px;
    }

    .e1e1-legal-sidebar {
        position: static;
    }

    .e1e1-legal-sidebar ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .e1e1-legal-shell {
        width: min(560px, calc(100% - 32px));
    }

    .e1e1-legal-hero {
        min-height: 0;
        padding: 64px 0 58px;
    }

    .e1e1-legal-hero h1 {
        font-size: 40px;
    }

    .e1e1-legal-headline {
        font-size: 25px;
    }

    .e1e1-legal-layout {
        padding-top: 44px;
        padding-bottom: 76px;
    }

    .e1e1-legal-sidebar {
        padding: 18px;
        border-radius: 19px;
    }

    .e1e1-legal-sidebar ul {
        grid-template-columns: 1fr;
    }

    .e1e1-legal-section {
        padding-bottom: 44px;
        margin-bottom: 44px;
    }

    .e1e1-legal-section h2,
    .e1e1-legal-contact h2,
    .e1e1-legal-draft-notice h2,
    .e1e1-legal-unavailable h1 {
        font-size: 31px;
    }

    .e1e1-legal-section li {
        padding: 14px 15px 14px 43px;
    }

    .e1e1-legal-contact,
    .e1e1-legal-draft-notice {
        padding: 25px 21px;
        border-radius: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .e1e1-legal-sidebar a {
        transition: none;
    }
}
