/* İç sayfalar (Kullanım Şartları, SSS) için ortak stiller */

html { scroll-behavior: smooth; }

/* Sayfa başlığı */
.page-hero {
    padding: 45px 0 60px;
    background: linear-gradient(to bottom, #0b111bde, #19273df2), url(../img/marsbahis-slider.jpg);
    background-position: top left;
    background-size: cover;
}
.page-hero__title { margin-top: 70px; }
.page-hero__crumb { font-size: 13px; font-weight: 300; margin: 0 0 12px; }
.page-hero__crumb a { color: #f4f4f4; text-decoration: none; }
.page-hero__crumb a:hover { color: #f1260f; }
.page-hero__crumb span { color: #f2c01c; }
.page-hero__title h1 { font-size: 44px; margin: 0 0 10px; }
.page-hero__title p { margin: 0; color: #f2c01c; font-weight: 300; letter-spacing: 0.6px; }

/* İçerik düzeni */
.doc { padding: 45px 0; }
.doc__layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

/* İçindekiler */
.doc__toc {
    position: sticky;
    top: 20px;
    background: #172131;
    border-radius: 10px;
    padding: 20px;
}
.doc__toc summary {
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.doc__toc summary::-webkit-details-marker { display: none; }
.doc__toc summary::after {
    content: "";
    width: 7px; height: 7px;
    border-right: 2px solid #f2c01c;
    border-bottom: 2px solid #f2c01c;
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin-right: 4px;
}
.doc__toc details[open] summary::after { transform: rotate(-135deg); }
.doc__toc ol { list-style: none; padding: 0; margin: 15px 0 0; }
.doc__toc a {
    display: block;
    padding: 7px 0 7px 10px;
    border-left: 2px solid transparent;
    color: #f4f4f4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
}
.doc__toc a:hover { color: #f1260f; border-left-color: #bf1624; }
.doc__toc a span { color: #bf1624; font-weight: 500; margin-right: 6px; }

/* Bölümler */
.doc__section {
    background: #172131;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    scroll-margin-top: 20px;
}
.doc__section:last-child { margin-bottom: 0; }
.doc__section h2 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 24px;
    font-weight: 500;
}
.doc__section h2 span { color: #bf1624; margin-right: 6px; }
.doc__section h3 {
    margin: 28px 0 10px;
    color: #f2c01c;
    font-size: 17px;
    font-weight: 500;
}
.doc__section p,
.doc__section li {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.65;
}
.doc__section p { margin: 0 0 12px; }
.doc__section ul,
.doc__section ol { margin: 0 0 12px; padding-left: 22px; }
.doc__section li { margin-bottom: 4px; }
.doc__section li::marker { color: #bf1624; }
.doc__section .no { color: #f2c01c; font-weight: 500; margin-right: 4px; }
.doc__section strong { font-weight: 500; }
.doc__section a { color: #bf1624; text-decoration: none; font-weight: 600; }
.doc__section a:hover { color: #f1260f; }

/* Tablo */
.doc__table-wrap { overflow-x: auto; margin: 0 0 16px; }
.doc__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc__table th,
.doc__table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 300;
}
.doc__table th { color: #f2c01c; font-weight: 500; }
.doc__table tbody tr:nth-child(odd) td { background: #19273d; }

/* Gruplu tablo (ara başlıklı) */
.doc__table--grouped tbody tr:nth-child(odd) td { background: transparent; }
.doc__table--grouped th:last-child,
.doc__table--grouped td:last-child { text-align: right; white-space: nowrap; }
.doc__table--grouped td:last-child { color: #f2c01c; font-weight: 500; }
.doc__table--grouped .doc__table-group th {
    background: #19273d;
    color: #f4f4f4;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-align: left;
    text-transform: uppercase;
}

/* SSS akordeon */
.faq { margin-top: -8px; }
.faq__item { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.faq__item:last-child { border-bottom: 0; }
.faq__item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: #f2c01c; }
.faq__item summary::after {
    content: "+";
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #19273d;
    color: #bf1624;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}
.faq__item[open] summary::after {
    transform: rotate(45deg);
    background: #bf1624;
    color: #ffffff;
}
.faq__item[open] summary { color: #f2c01c; }
.faq__answer { padding: 0 41px 16px 0; }
.faq__answer p:last-child,
.faq__answer ul:last-child,
.faq__answer ol:last-child { margin-bottom: 0; }

@media (max-width: 992px) {
    .doc__layout { grid-template-columns: 1fr; }
    .doc__toc { position: static; }
}
@media (max-width: 768px) {
    .page-hero__title { margin-top: 40px; text-align: center; }
    .page-hero__title h1 { font-size: 32px; }
    .doc__section { padding: 20px; }
    .doc__section h2 { font-size: 21px; }
    .faq__item summary { font-size: 15px; }
    .faq__answer { padding-right: 0; }
}
