/* ====================================
   REGULAMENTO - Rules & Regulations CSS
   ==================================== */

main {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
    min-height: calc(100vh - 400px);
}

main section {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
main section h1,
main section h2 {
    color: #0d47a1;
    font-size: 32px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0d47a1;
}

main section h2 {
    font-size: 26px;
    margin-top: 35px;
}

main section h3 {
    color: #1565c0;
    font-size: 20px;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

main section h4 {
    color: #0d47a1;
    font-size: 16px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 12px;
}

/* Paragraphs */
main section p {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
    text-align: justify;
}

/* Lists */
main section ul,
main section ol {
    margin: 20px 0 20px 30px;
    padding-left: 20px;
}

main section li {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}

main section ul li {
    list-style-type: disc;
}

main section ul li::marker {
    color: #0d47a1;
    font-weight: 700;
}

main section ol li {
    list-style-type: decimal;
}

main section ol li::marker {
    color: #0d47a1;
    font-weight: 700;
}

/* Nested lists */
main section ul ul,
main section ol ol {
    margin-top: 12px;
    margin-bottom: 12px;
}

main section ul ul li {
    list-style-type: circle;
}

/* Strong text */
main section strong {
    color: #0d47a1;
    font-weight: 700;
}

/* Emphasis */
main section em {
    color: #1565c0;
    font-style: italic;
}

/* Links */
main section a {
    color: #0d47a1;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}

main section a:hover {
    color: #1565c0;
    border-bottom-color: #0d47a1;
}

main section a:active {
    color: #0d47a1;
}

/* Content Sections */
.regulation-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8e8e8;
}

.regulation-section:last-child {
    border-bottom: none;
}

/* Table Styles */
main section table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

main section table th {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    color: white;
    padding: 15px;
    font-weight: 700;
    text-align: left;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

main section table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e8e8e8;
    color: #333;
    font-size: 14px;
}

main section table tbody tr:last-child td {
    border-bottom: none;
}

main section table tbody tr:hover {
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

main section table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Blockquote */
main section blockquote {
    border-left: 5px solid #0d47a1;
    padding: 20px;
    margin: 25px 0;
    background-color: #f0f4ff;
    border-radius: 6px;
    color: #0d47a1;
    font-style: italic;
    font-size: 15px;
    line-height: 1.7;
}

/* Code blocks */
main section pre {
    background-color: #f5f5f5;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    padding: 20px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 20px 0;
}

main section code {
    background-color: #f0f0f0;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 2px 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #0d47a1;
}

main section pre code {
    background-color: transparent;
    border: none;
    padding: 0;
    color: #333;
}

/* Contact Information Box */
.contact-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f5f5 100%);
    border: 2px solid #0d47a1;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    border-left: 5px solid #0d47a1;
}

.contact-box h3 {
    color: #0d47a1;
    margin-top: 0;
    margin-bottom: 15px;
}

.contact-box p {
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-box strong {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

/* Alert Boxes */
.alert-info {
    background-color: #e3f2fd;
    border-left: 5px solid #0d47a1;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
    color: #0d47a1;
    font-size: 14px;
    line-height: 1.7;
}

.alert-warning {
    background-color: #fff3e0;
    border-left: 5px solid #ff9800;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
    color: #e65100;
    font-size: 14px;
    line-height: 1.7;
}

.alert-success {
    background-color: #e8f5e9;
    border-left: 5px solid #4caf50;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
    color: #2e7d32;
    font-size: 14px;
    line-height: 1.7;
}

/* Divider */
main section hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #e8e8e8, #0d47a1, #e8e8e8);
    margin: 40px 0;
}

/* Definition List */
main section dl {
    margin: 20px 0;
}

main section dt {
    color: #0d47a1;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 15px;
}

main section dd {
    margin-left: 30px;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Scroll to top indicator */
main section::before {
    content: '';
    display: block;
    height: 0;
    width: 0;
}

/* Print Styles */
@media print {
    main {
        background: white;
        padding: 0;
    }

    main section {
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    main section a {
        color: #0d47a1;
        text-decoration: underline;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 30px 0;
    }

    main section {
        padding: 30px 20px;
        border-radius: 8px;
    }

    main section h1,
    main section h2 {
        font-size: 24px;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    main section h2 {
        font-size: 20px;
    }

    main section h3 {
        font-size: 17px;
        margin-top: 20px;
    }

    main section p {
        font-size: 14px;
        text-align: left;
    }

    main section ul,
    main section ol {
        margin-left: 20px;
        padding-left: 15px;
    }

    main section li {
        font-size: 14px;
        margin-bottom: 10px;
    }

    main section table {
        font-size: 13px;
        margin: 20px -20px;
        border-radius: 0;
    }

    main section table th,
    main section table td {
        padding: 10px 12px;
    }

    .contact-box {
        padding: 20px;
        margin: 25px 0;
    }

    .alert-info,
    .alert-warning,
    .alert-success {
        padding: 15px;
        margin: 20px 0;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    main {
        padding: 20px 0;
    }

    main section {
        padding: 20px 15px;
        border-radius: 6px;
        margin: 0 10px;
    }

    main section h1,
    main section h2 {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    main section h2 {
        font-size: 18px;
    }

    main section h3 {
        font-size: 16px;
        margin-top: 15px;
    }

    main section p {
        font-size: 13px;
        line-height: 1.6;
    }

    main section ul,
    main section ol {
        margin-left: 15px;
        padding-left: 15px;
    }

    main section li {
        font-size: 13px;
        margin-bottom: 8px;
    }

    main section table {
        font-size: 12px;
        margin: 15px -15px;
    }

    main section table th,
    main section table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .contact-box {
        padding: 15px;
        margin: 20px 0;
    }

    .contact-box p {
        font-size: 13px;
    }

    .alert-info,
    .alert-warning,
    .alert-success {
        padding: 12px;
        margin: 15px 0;
        font-size: 12px;
    }

    main section hr {
        margin: 30px 0;
    }
}
