/* =========================================================
   Music FM — Terms & Conditions 2026
   מסמך משפטי V2
========================================================= */

.terms-page{
    direction:rtl;
    padding-top:24px;
    padding-bottom:60px;
}

.terms-hero{
    position:relative;
    overflow:hidden;
    margin-bottom:20px;
    border-radius:4px;
    border:1px solid rgba(20,124,255,.18);
    background:
        radial-gradient(circle at 16% 8%,rgba(89,199,255,.20),transparent 34%),
        radial-gradient(circle at 84% 16%,rgba(20,124,255,.20),transparent 34%),
        linear-gradient(135deg,#071832 0%,#08295b 52%,#031126 100%);
    color:#fff;
    box-shadow:
        0 14px 36px rgba(15,35,70,.13),
        inset 0 1px 0 rgba(255,255,255,.06);
}

.terms-hero::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,.018) 0,
            rgba(255,255,255,.018) 1px,
            transparent 1px,
            transparent 118px
        );
    opacity:.52;
}

.terms-hero-content{
    position:relative;
    z-index:2;
    padding:54px 46px;
}

.terms-hero > .terms-hero-content > span{
    display:inline-flex;
    align-items:center;
    min-height:31px;
    padding:0 12px;
    border-radius:3px;
    background:#ffd84d;
    color:#111827;
    font-size:13px;
    line-height:1;
    font-weight:950;
}

.terms-hero h1{
    margin:18px 0 14px;
    color:#fff;
    font-size:62px;
    line-height:.95;
    font-weight:950;
    letter-spacing:-2px;
}

.terms-hero p{
    max-width:860px;
    margin:0;
    color:rgba(255,255,255,.84);
    font-size:18px;
    line-height:1.75;
    font-weight:760;
}

.terms-hero small{
    display:block;
    margin-top:20px;
    color:#c8dbff;
    font-weight:900;
}

/* PDF Download Button */
.terms-hero-actions{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    margin-top:18px;
}

.terms-pdf-download{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:38px;
    padding:0 14px;
    border-radius:4px;
    background:#ffd84d;
    color:#071326;
    border:1px solid rgba(255,255,255,.20);
    font-size:13px;
    font-weight:950;
    text-decoration:none;
    box-shadow:0 10px 22px rgba(0,0,0,.15);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.terms-pdf-download:hover{
    background:#ffcc24;
    color:#071326;
    transform:translateY(-1px);
    box-shadow:0 14px 28px rgba(0,0,0,.18);
}

.terms-pdf-download:focus-visible{
    outline:3px solid rgba(255,216,77,.45);
    outline-offset:3px;
}

.terms-pdf-download-icon{
    width:18px;
    height:18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:3px;
    background:#071326;
    color:#ffd84d;
    font-size:13px;
    font-weight:950;
    line-height:1;
}

.terms-notice,
.terms-final,
.terms-section,
.terms-index{
    border:1px solid #dfe7f3;
    border-radius:4px;
    background:#fff;
    box-shadow:0 9px 24px rgba(15,35,70,.055);
}

.terms-notice{
    margin-bottom:18px;
    padding:20px 24px;
    border-right:5px solid #ffd84d;
}

.terms-notice strong{
    display:block;
    margin-bottom:8px;
    color:#111827;
    font-size:20px;
    font-weight:950;
}

.terms-notice p{
    margin:0;
    color:#475467;
    font-size:15px;
    line-height:1.8;
    font-weight:760;
}

.terms-index{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:8px;
    margin-bottom:20px;
    padding:16px;
}

.terms-index a{
    min-height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:0 10px;
    border-radius:3px;
    background:#f8fbff;
    border:1px solid #e4ebf5;
    color:#111827;
    font-size:13px;
    line-height:1.25;
    font-weight:900;
    text-decoration:none;
    transition:
        color .18s ease,
        border-color .18s ease,
        background .18s ease,
        transform .18s ease;
}

.terms-index a:hover{
    color:#147cff;
    border-color:rgba(20,124,255,.28);
    background:#eef6ff;
    transform:translateY(-1px);
}

.terms-section{
    margin-bottom:18px;
    padding:28px 30px;
    scroll-margin-top:95px;
}

.terms-section h2,
.terms-final h2{
    position:relative;
    margin:0 0 18px;
    padding-right:18px;
    color:#111827;
    font-size:28px;
    line-height:1.2;
    font-weight:950;
}

.terms-section h2::before,
.terms-final h2::before{
    content:"";
    position:absolute;
    right:0;
    top:3px;
    width:7px;
    height:34px;
    border-radius:2px;
    background:#ffd84d;
    box-shadow:0 0 0 3px rgba(255,216,77,.16);
}

.terms-section p,
.terms-section li,
.terms-final p{
    color:#475467;
    font-size:16px;
    line-height:1.95;
    font-weight:720;
}

.terms-section p{
    margin:0 0 14px;
}

.terms-section p:last-child{
    margin-bottom:0;
}

.terms-section ul{
    margin:0;
    padding-right:22px;
}

.terms-section li{
    margin-bottom:9px;
}

.terms-section strong{
    color:#111827;
    font-weight:950;
}

.terms-important{
    border-color:rgba(255,216,77,.55);
    background:
        linear-gradient(180deg,#fff 0%,#fffdf4 100%);
}

.terms-final{
    padding:28px 30px;
    margin-top:22px;
    border-right:5px solid #ffd84d;
}

.terms-final p{
    margin:0 0 18px;
}

.terms-final a{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 18px;
    border-radius:3px;
    background:#147cff;
    color:#fff;
    font-weight:950;
    text-decoration:none;
}

@media(max-width:1100px){
    .terms-index{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:720px){
    .terms-page{
        padding-top:16px;
    }

    .terms-hero{
        margin-inline:-9px;
        border-radius:0 0 4px 4px;
    }

    .terms-hero-content{
        padding:32px 22px;
    }

    .terms-hero h1{
        font-size:40px;
        letter-spacing:-1px;
    }

    .terms-hero p{
        font-size:15px;
        line-height:1.68;
    }

    .terms-hero-actions{
        margin-top:22px;
    }

    .terms-pdf-download{
        width:auto;
        max-width:none;
        min-height:38px;
        padding:0 14px;
        font-size:13px;
    }

    .terms-index{
        grid-template-columns:1fr 1fr;
        padding:12px;
    }

    .terms-index a{
        font-size:12px;
    }

    .terms-section,
    .terms-final{
        padding:22px 18px;
    }

    .terms-section h2,
    .terms-final h2{
        font-size:23px;
    }

    .terms-section p,
    .terms-section li,
    .terms-final p{
        font-size:15px;
        line-height:1.85;
    }
}

@media(max-width:430px){
    .terms-index{
        grid-template-columns:1fr;
    }

    .terms-pdf-download{
        max-width:none;
    }
}

/* Extra yellow legal notice blocks */
.terms-warning{
    margin:22px 0 4px;
    padding:18px 20px;
    border:1px solid #f2cf65;
    border-right:5px solid #f5b700;
    border-radius:4px;
    background:linear-gradient(180deg,#fff8df 0%,#fff3bd 100%);
    color:#3f2f00;
    box-shadow:0 12px 28px rgba(180,130,0,.10);
}

.terms-warning strong{
    display:block;
    margin:0 0 10px;
    color:#3f2f00;
    font-size:17px;
    font-weight:950;
}

.terms-warning p{
    margin:0 0 10px;
    color:#4b3a08;
    font-weight:700;
    line-height:1.85;
}

.terms-warning p:last-child{
    margin-bottom:0;
}
