body{
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f8f9fb;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header{
    background: white;
    position: sticky;
    top: 0;
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    z-index: 999;
    gap: 14px;
}

.logo{
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    text-decoration: none;
    color: inherit;
}

.logo img{
    height: 42px;
    width: auto;
    border-radius: 10px;
}

.logo span{
    font-size: 22px;
    font-weight: 900;
    color: #1b1b1b;
    letter-spacing: -0.3px;
}

.nav{
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav a{
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #d7dbe3;
    color: #1b1b1b;
    background: #fff;
    display: inline-block;
}

.wrap{
    max-width: 1000px;
    margin: 0 auto;
    padding: 26px 16px 40px;
    width: 100%;
    flex: 1;
}

.card{
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    padding: 22px;
}

h1{
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 900;
    color: #1b1b1b;
}

.hint{
    margin: 0 0 18px;
    color: #666;
    line-height: 1.7;
    font-size: 14.5px;
}

.terms-content{
    line-height: 1.9;
    color: #333;
    font-size: 15.5px;
    word-break: break-word;
}

.terms-content h2, .terms-content h3{
    margin-top: 22px;
    color: #1b1b1b;
}

.terms-content a{
    color: #1b66ff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(27,102,255,0.35);
}

.terms-content a:hover{
    border-bottom-style: solid;
}

.error{
    background: #fff3f3;
    border: 1px solid rgba(255,0,0,0.14);
    color: #7a1c1c;
    padding: 14px;
    border-radius: 14px;
    line-height: 1.8;
    font-size: 14.5px;
}

/* زر اللغة */
.lang a{
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #d7dbe3;
    background: #fff;
    color: #1b1b1b;
    text-decoration: none;
    display: inline-block;
}
.lang a.active{
    border-color: #1b66ff;
    box-shadow: 0 0 0 3px rgba(27,102,255,0.12);
}

/* Footer */
footer{
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 16px 14px;
}
.footer-inner{
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}
.footer-inner a{
    color: #1b1b1b;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 10px;
}
.footer-inner a:hover{
    background: #f1f2f6;
}
.footer-sep{
    color: #999;
    font-weight: 600;
}
