/* Digital Signature Legality Guide Styles */

/* Hero Section */
.legality-hero {
    background: linear-gradient(135deg, var(--primary-color-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.legality-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.legality-hero .subtitle-text {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Overview Section */
.legality-overview {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.legality-overview .content-column {
    padding-right: 2rem;
}

.legality-overview h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color-dark);
}

.legality-overview .feature-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.legality-overview .feature-list.check-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Country Selector */
.country-selector {
    padding: 60px 0;
    background-color: white;
}

.country-selection {
    margin-top: 2rem;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem;
}

#country-search {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.popular-countries h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: #666;
}

.country-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 1rem;
}

.country-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.country-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.country-btn.active {
    background-color: var(--primary) !important;
    border-color: var(--primary);
    color: var(--white);
}

.country-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

/* Country Details */
.country-details {
    padding: 60px 0;
    background-color: #f9f9f9;
}

#country-info-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.country-info-header {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(to right, #f5f7fa, #f9f9f9);
    border-bottom: 1px solid #eee;
}

.country-flag {
    margin-right: 20px;
}

.country-flag img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: cover;
}

.country-name h2 {
    margin: 0;
    font-size: 1.8rem;
}

.legal-status, .legal-model {
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}
.legal-model {
    margin-left: 10px;
}

.legal-status.valid, .legal-model.valid {
    color: #28a745;
}

.legal-status.limited, .legal-model.limited {
    color: #ffc107;
}

.legal-status.invalid, .legal-model.invalid {
    color: #dc3545;
}

.legal-status i, .legal-model i {
    margin-right: 5px;
}

.country-info-content {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.info-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color-dark);
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color-light);
    padding-bottom: 10px;
}

.info-card ul {
    padding-left: 20px;
    list-style-type: disc;
}

.info-card li {
    margin-bottom: 10px;
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
  }
  
  .info-card li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
  }
/* Legal Framework Icon (e.g., gavel) */
.legal-framework li::before {
  content: "\f0e3"; /* Font Awesome 'gavel' */
  font-family: "Font Awesome 5 Free"; 
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #4a90e2;
}

/* Signature Types Icon (e.g., pencil-alt) */
.signature-types li::before {
  content: "\f303"; /* Font Awesome 'pencil-alt' */
  font-family: "Font Awesome 5 Free"; 
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #27ae60;
}

/* Admissibility Icon (e.g., check-circle) */
.admissibility li::before {
  content: "\f058"; /* Font Awesome 'check-circle' */
  font-family: "Font Awesome 5 Free"; 
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #2ecc71;
}

/* Exclusions Icon (e.g., exclamation-triangle) */
.exclusions li::before {
  content: "\f071"; /* Font Awesome 'exclamation-triangle' */
  font-family: "Font Awesome 5 Free"; 
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #e67e22;
}

/* Resources Icon (e.g., external-link-alt) */
.resources li::before ,
    .ext-links li::before {
        content: "\f35d"; /* Font Awesome 'external-link-alt' */
  font-family: "Font Awesome 5 Free"; 
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #9b59b6;
}
/* Signature Types Explainer */
.signature-types-explainer {
    padding: 80px 0;
    background-color: white;
}

.signature-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.signature-type-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.signature-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.type-header {
    background: linear-gradient(to right, var(--primary-color-light), var(--primary-color-lighter));
    padding: 20px;
    color: var(--primary-color-dark);
    display: flex;
    align-items: center;
}

.type-header i {
    font-size: 2rem;
    margin-right: 15px;
}

.type-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.type-content {
    padding: 20px;
}

.type-content p {
    margin-bottom: 15px;
}

/* Legal Models */
.legal-models {
    padding: 80px 0;
    background-color: #f5f7fa;
}

.legal-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.legal-model-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.legal-model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.legal-model-card h3 {
    color: var(--primary-color-dark);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color-light);
    padding-bottom: 10px;
}

.legal-model-card p {
    margin-bottom: 15px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: white;
}

.faq-container {
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f9f9f9;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #666;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    box-sizing: border-box;
}

.faq-item.open .faq-answer {
    padding: 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.primary-button, .secondary-button {
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-button {
    background: white;
    color: var(--primary-color-dark);
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.secondary-button {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-button:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .country-info-content {
        grid-template-columns: 1fr;
    }
    
    .two-column-content {
        flex-direction: column;
    }
    
    .legality-overview .content-column {
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .legality-hero h1 {
        font-size: 2.5rem;
    }
    
    .signature-types-grid, 
    .legal-models-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .country-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    .country-flag {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .country-btn {
        width: 100%;
    }
    
    .country-buttons {
        flex-direction: column;
    }
} 